Is there any way to see a full SMTP log for email errors? I'm trying to see specific error messages that the SMTP service I'm using is give me. Some emails from Drupal send ok and some don't so I'm trying to track down the issues.

Thanks.

Comments

oadaeh’s picture

Status: Active » Postponed (maintainer needs more info)

Have you tried setting the "Debug level" under "Advanced SMTP settings" on the configuration page (admin/config/system/phpmailer)?

kruser’s picture

Yes, but debug only shows "real-time" SMTP messages to the user who sends the email and doesn't put that info in the watchdog log. For example I'm trying to debug when someone places an ubercart order and it sends emails, if it fails, I'd like to see the SMTP log for the failure.

oadaeh’s picture

Component: Miscellaneous » Code
Category: support » feature
Status: Postponed (maintainer needs more info) » Active

Ah, so what you really want is for the PHPMailer module to save the SMTP conversation in Drupal's logs. It does not do that, and so this is a feature request.

  • oadaeh committed 9b888b5 on 7.x-3.x
    Issue #2088807 by oadaeh: Log SMTP communication output
    
oadaeh’s picture

Issue summary: View changes
Status: Active » Fixed

I committed changes to store the communication output in Drupal's database log, and an administrative option for en/disabling it.

oadaeh’s picture

Title: Full SMTP Log » Record debugging output in Drupal's log
Version: 7.x-3.x-dev » 8.x-3.x-dev
Status: Fixed » Active

I forgot that I need to add this to the 8.x branch, so I'm re-opening the ticket.

  • oadaeh committed 11329b4 on 8.x-3.x
    Issue #2088807 by oadaeh: Record debugging output in Drupal's log
    
oadaeh’s picture

Status: Active » Fixed

Okay, now this is fixed.

Status: Fixed » Closed (fixed)

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