• Resolved Paul Schacht

    (@whatthedickens)


    I recently set up WP Mail SMTP with SendLayer. Emails to Gmail users are being returned because they are not RFC 5322 compliant. Specifically, they contain multiple To headers. In the returned emails, I can see that the recipient’s address is included in the To line twice, separated by a comma.

    This issue is affecting activation emails that the site sends out to newly registered users, so new users trying to register with Gmail addresses can’t activate their accounts. It also affects email notifications when an account holder sends another account holder a message through the site. If the receiving account holder is a Gmail user, the email notification to the user is returned as undeliverable.

    I’ve reached out to SendLayer for support as well, but so far they have no answers.

    Thanks for any help you can offer.

    • This topic was modified 11 months, 4 weeks ago by Paul Schacht.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Paul Schacht

    (@whatthedickens)

    Update: I have reason to believe that this is a BuddyPress issue rather than a WP Mail SMTP or SendLayer issue.

    Plugin Support David

    (@dpinson)

    Hi there @whatthedickens,

    Thanks for the update! I believe I recall someone running into an issue with another plugin adding multiple headers in the past, but it’s not a common issue we see. Feel free to keep us posted about this

    Have a great day!

    Thread Starter Paul Schacht

    (@whatthedickens)

    Thanks, @dpinson! Here’s another update. I’m continuing to work on figuring out why BuddyPress would insert the username twice in both message-notification and user-activation emails. Meanwhile, though, the reason I originally installed WP Mail SMTP was that user-activation emails to new users were being rejected by Gmail for failing SPF and DKIM. And I notice that both user-activation and message-notification emails continue to be sent via PHPMailer rather than WP Mail SMTP. This is the case even though in the Settings for WP Mail SMTP I have “Force From Name” “Force From Email” turned on.

    So even if I can solve the “multiple To headers” problem, these emails will continue to be rejected by Gmail. The “force” settings are supposed to override plugin-specific settings, so that emails will be handled by WP Mail SMTP, but evidently that’s not happening. Any idea why?

    Thanks again.

    Plugin Support David

    (@dpinson)

    Hi there @whatthedickens

    Thanks for the response! That particular issue has to do with the way BuddyPress sends emails. Check out this post on our site. It provides a walkthrough on how to get BuddyPress notifications to go through our plugin:

    https://wpmailsmtp.com/buddypress-activation-email-notifications/

    I hope that helps! Have a great day! ??

    Thread Starter Paul Schacht

    (@whatthedickens)

    . . . and, problem solved! Actually, both problems. User-activation emails are now routed through WP Mail SMTP, and they no longer contain multiple To headers. Gmail is happy and so am I. Thanks, @dpinson!

    Plugin Support David

    (@dpinson)

    Hi @whatthedickens,

    That’s great to hear! I’m glad you were able to get things rolling.

    If you run into any other trouble, just let us know. ??

    Have a great weekend!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multiple To headers’ is closed to new replies.