Problem/Motivation
Currently, _smtp_mailer_send() does this when it successfully sends a message:
// Let the people know what is going on.
$logger->info('Sending mail to: @to', ['@to' => $to]);
However, that doesn't really give us enough info to know "what is going on." ;) I'd love to include at least the subject in this message, so we can make more sense of what messages are being sent when.
Steps to reproduce
- Install / enable / config smtp.module.
- Use it to send emails
- Look in the dblog.
Proposed resolution
Add the message subject to this logger info() call.
Remaining tasks
Upload the patch.
- Agree this is worth doing.
- Reviews / refinements.
- RTBC.
- Commit.
User interface changes
More info in the "watchdog" log entries when smtp.module sends a message.
API changes
N/A
Data model changes
N/A
Comments
Comment #2
dwwLike so. Thoughts?
Thanks!
-Derek
Comment #3
dwwI guess for completeness, we should do the same when messages are queued. This one is untested, since I don't see any docs on how to configure this module to do queuing. ;)
Comment #4
tr commentedThis will be helpful.
Comment #5
vladimirausI tested the patch and can confirm it is working.
+1 for release.
Comment #6
azinck commentedThis is very helpful. +1
Comment #7
japerry