Hi,
It works fine without Mime Mail, but it doesnt work when we use Mime Mail as Mail Engine.

Thanks!

Comments

polskikrol’s picture

I have the same exact problem.

pluess’s picture

Status: Active » Closed (works as designed)

The module page states "There's no mail wrapper / chain integration like in drupal 6 yet." Due to how multiple modules have to hook into core to handle mails this cannot be done with one module.

However you can use Mailwire module and the mentioned patches to integrate maillog with mimemail.

czigor’s picture

Issue summary: View changes
Status: Closed (works as designed) » Needs review
StatusFileSize
new4.51 KB

The attached patch looks for mimemail and if it is enabled it uses the mailengine selected at admin/config/development/maillog for sending the mail.

For logging and dpm() it always uses DefaultMailSystem() since that's what I needed. It is quite easy to make this an option as well.

Status: Needs review » Needs work

The last submitted patch, 3: maillog-mimemail_integration-1417188-3.patch, failed testing.

czigor’s picture

Status: Needs work » Closed (works as designed)

Great, this has already been fixed. I was using an older dev version. Argh.

chrowe’s picture

Version: 7.x-1.x-dev » 7.x-1.0-alpha1
Status: Closed (works as designed) » Active

This is not working as I would expect.
I am using 7.x-1.0-alpha1 which seems to contain the commit that should implement this.
http://cgit.drupalcode.org/maillog/commit/?id=e8ed3229f0f41f84274cc7f720...

I have Mime Mail 7.x-1.0-beta3 enabled
I have all checkboxes selected on admin/config/development/maillog and "MimeMailSystem" selected in 'Select the mail system which should be used.'

derMatze’s picture

Any update on this issue?

damienmckenna’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.x-dev
twod’s picture

This does work, but combining Maillog with MimeMail (via Mailsystem) makes things a bit non-intuitive and somewhat dependent on which order you enable the modules in.

MailSystem has a simple API for allowing modules to add/remove information about which MailSystemInterface classes are available and then lets you pick which one to use from the GUI at admin/config/system/mailsystem. The list is kept in Core's mail_system variable and the API is basically a set of helper functions to modify this without accidentally removing changes made by another module.

MimeMail uses the MailSystem API when it gets enabled to add itself to the mail_system list.
You can then pick MimeMail as your site's default mailsystem, or use it just for some emails, using the MailSystem settings on admin/config/system/mailsystem. Settings for mail which do end up going through MimeMail are configured on admin/config/system/mimemail.

Maillog does not use the MailSystem module API to add its own MailSystemInterface class to the mail_system and instead just overwrites it completely and sets itself to be the system-wide default handler for emails (unless a module/mailkey combination is set to explicitly use another class).

I got it to work by first installing Maillog and letting it do its thing. Then I installed MailSystem/MimeMail and picked to use Maillog as the site default MailSystemInterface implementation on admin/config/system/mimemail. Then in Maillog's settings on admin/config/development/maillog I set Maillog to use MimeMail for formatting the messages (and actually sending them, if allowed).

Maillog needs a patch here to not overwrite the mail_system list if MailSystem module exists!
Also maybe add a note that the MailSystem settings page should be used to actually select Maillog as the implementation - or it won't be used - and that Maillog will act as a kind of proxy for the mail system picked in its settings.

metroecho’s picture

Working on having both Simplenews and Views Send operating on the same site. Why is it so difficult to find a way to see a log of emails on a system that is based on a database. The reason must be too complex for me. Worked on this today I first tried https://www.drupal.org/project/mail_logger because it looks more stable. But https://www.drupal.org/project/maillog looks like it might be better.

Mail blogger gives me an error because Views Send uses Mime mail, and I can't get Maillog to show in the view that comes with it but mail sent from Views Send will show on the Recent log messages. Simplenews will not log anywhere. Having the log go to a view look to me to be the best way. And having the ability to select between mime and html mail is a plus. (although it would be best that mime and html consolidate into one) Any suggestions?

damienmckenna’s picture

Title: Does not log MimeMail » Improved support for MimeMail
Status: Active » Needs work
cosolom’s picture

Maybe will be better to use https://www.drupal.org/project/mail_safety It works with MimeMail module