Fix disappearing emails send with WordPress

Email complexity has increased drastically since its first release. The now ever growing stack of email components no longer just consist of SMTP, MTA, MTP and MDA. Over the years technologies such as POP & IMAP were introduced along with security features such as SMTPS & STARTSSL. Now a days almost every addition to email is a security feature with more recent introductions such as SPF and DKIM.

And it is precisely there were WordPress bites a bitter bullet. WordPress uses the phpmailer backend and fails to correctly set the return-path parameter in the mail it sends. The return-path parameter is critical to pass SPF email protection mechanism and as a result any decent email server such as those of Google or Microsoft will reject the emails send by WordPress.

The solution is a very small plugin that should (long since its release in 2012) have been be incorporated into the core WordPress codebase. Copy the code below and paste it into a file in the wp-content/plugins directory of your WordPress installation, remember to activate it in the plugin dashboard. Alternatively this plugin can be downloaded from the website of the author Original Download

Leave a Reply

Your email address will not be published. Required fields are marked *