Headers in email
-
I have a quite a few WordPress websites and this problem has become a common issue.
When receiving emails from Contact Form 7, headers have started to appear in the body of the email. The following appears first followed by the message itself. I’ve replaced the domain name with sitename.comX-PHP-Originating-Script: 6697:class-phpmailer.php
Date: Thu, 23 Apr 2020 11:19:15 +0000
From: WordPress <[email protected]>
Message-ID: <[email protected]>
X-Mailer: PHPMailer 5.2.27 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8When replying to these emails the senders address is not the Reply-To. Instead, the To: field is populated with a server related address, which means the email goes nowhere.
At first I though this was a problem with Contact Form 7. However, I recently received an email notification from one of the websites to say that a comment had been held for moderation. The same headers were in this email.
After a bit of investigation I noticed that the problem seems to be coming from the fact that the site has both WordFence and Shield Security plugins active. Having tested with all other plugins deactivated, this problem occurs when both WordFence and Shield are active at the same time. Deactivate either of them and the problem goes away.
Any suggestions, other than just not using one of them?
Thanks
- The topic ‘Headers in email’ is closed to new replies.