• Resolved jmnly

    (@jmnly)


    I’m getting errors when trying to send a password reset email to one of my users. I’ve re-authenticated my OAUTH connection. The test email comes through, as well as others like user-initiated password reset emails, but when I initiate a password reset email I get the following error:

    Heads up! The last email your site attempted to send was unsuccessful.

    Email Source: WP Core Mailer: Google / Gmail Message body empty

    For more details please try running an Email Test or reading the latest error event.

    Event #170

    Debug Event Details

    TypeError

    DateJuly 8, 2024 at 11:00 am

    Content

    Mailer: Google / Gmail
    Message body empty

    Source

    WP Core

    /data/www/dermapen.com/wp-includes/user.php (line: 3279)

    Backtrace:
    [0] wp_mail called at [/data/www/dermapen.com/wp-includes/user.php:3279]
    [1] retrieve_password called at [/data/www/dermapen.com/wp-admin/users.php:259]

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @jmnly,

    Thanks for reaching out. We’re happy to help.

    The “Message body empty” error message usually occurs when there is some missing component in the email you are sending out, such as an empty email body or an empty email subject.

    If you are using a custom plugin to send your password reset emails, please confirm that none of the required fields for emails are not empty.

    If you are using the default WordPress method to send password reset emails, please check also that there is no custom code on you site that’s altering any of the email components.

    I hope this helps. Thanks 🙂

    Thread Starter jmnly

    (@jmnly)

    Hi @nasanansi,

    Thank you for your reply. I am using the default wordpress method to send password reset emails. There is no custom code impacting this to my knowledge and it was working up until very recently (just noticed this morning). I’ve made no changes to functions.php recently and only standard plugin updates.

    I’ve noticed that other emails are not being impacted, just these Admin-initiated emails.

    Hi @jmnly,

    Thanks for getting back to us on this.

    Kindly bear in mind that this error is returned from the Google/Gmail API and it returns this error based on the content it’s received or not received from your site.

    If the test email and other emails work just fine, it means WP Mail SMTP is working as expected and passing all the email components to your Google/Gmail mailer as expected. Since the password reset emails are throwing this error, there’s probably a missing component that’s not being passed to Google as expected.

    If you haven’t made any changes to your site that could’ve caused this, can you please check with your hosting provider to see if there are recent changes made on their server or your site automatically without your knowledge?

    I apologize that we are unable to provide an immediate solution to this. But I do hope the information provided above can help point you in the right direction.

    Thanks 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Mailer: Google / Gmail Message body empty’ is closed to new replies.