[resolved] Some emails not being logged by Mandrill (5 posts)

  1. petergibbons
    Posted 2 years ago #


    Only some of my wp_mail calls are being logged. Namely the password reset calls. All the wp_mail calls are sending email correctly... I'm using wp_mail as per the codex. I also tried calling wpMandrill::mail() directly with no luck.

    Any suggestions?

    My mandril account username is peter-gibbons


  2. willcast
    Posted 2 years ago #

    Can you confirm that all those missing emails are being sent through Mandrill? Check the email headers and verify that they are actually coming from a Mandrill server.

    If wpMandrill found any error while sending an email, it silently sends it through the regular WP wp_mail function. That might be happening.

  3. petergibbons
    Posted 2 years ago #

    At first all email was indeed going through Mandrill but now none of it is (other than the password reset).

    Are there any common errors I should be looking for?


  4. willcast
    Posted 2 years ago #

    I assume you are using it through your own plugin/process.

    I'd activate the WP_DEBUG constant in your wp_config.php file and then check the log file after sending a few emails.

    Probably your payload is malformed?

  5. petergibbons
    Posted 2 years ago #

    Finally figured it out. My payload seemed fine, but I was passing headers into wp_mail as well which it doesn't like. I took out the headers and all mail is sending as intended through mandrill.

    thanks for the guidance willcast.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • wpMandrill
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic