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

  1. Install / enable / config smtp.module.
  2. Use it to send emails
  3. Look in the dblog.

Proposed resolution

Add the message subject to this logger info() call.

Remaining tasks

  1. Upload the patch.
  2. Agree this is worth doing.
  3. Reviews / refinements.
  4. RTBC.
  5. 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

CommentFileSizeAuthor
#3 3165981.2_3.interdiff.txt546 bytesdww
#3 3165981-3.patch1.1 KBdww
#2 3165981-2.patch492 bytesdww

Comments

dww created an issue. See original summary.

dww’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new492 bytes

Like so. Thoughts?

Thanks!
-Derek

dww’s picture

StatusFileSize
new1.1 KB
new546 bytes

I 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. ;)

tr’s picture

Status: Needs review » Reviewed & tested by the community

This will be helpful.

vladimiraus’s picture

I tested the patch and can confirm it is working.
+1 for release.

azinck’s picture

This is very helpful. +1

japerry’s picture

Status: Reviewed & tested by the community » Fixed

  • japerry committed 9de1cc1 on 8.x-1.x authored by dww
    Issue #3165981 by dww: Include more info for the logger->info() call
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.