Needs work
Project:
Maillog / Mail Developer (obsolete)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2012 at 02:39 UTC
Updated:
24 Sep 2020 at 14:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
polskikrol commentedI have the same exact problem.
Comment #2
pluess commentedThe 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.
Comment #3
czigor commentedThe 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.
Comment #5
czigor commentedGreat, this has already been fixed. I was using an older dev version. Argh.
Comment #6
chrowe commentedThis 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.'
Comment #7
derMatze commentedAny update on this issue?
Comment #8
damienmckennaComment #9
twodThis 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
MailSystemInterfaceclasses 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'smail_systemvariable 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
MailSystemInterfaceclass to themail_systemand 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
MailSystemInterfaceimplementation 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_systemlist 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.
Comment #10
metroecho commentedWorking 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?
Comment #11
damienmckennaComment #12
cosolom commentedMaybe will be better to use https://www.drupal.org/project/mail_safety It works with MimeMail module