• 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.com

    X-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-8

    When 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the exact same problem, deactivated the Wordfence plugin and it came back to normal again.
    I have had this issue a few months now, I use Hostgator webhosting.

    After further testing I found out that disable the Wordfence firewall solves the problem. So the Wordfence developers should look into that.

    Hey @macsuibhne,

    Can you please switch the Firewall into Learning Mode and let me know if it helps?

    @sabai – Thanks for sharing your findings.

    Please let me know how it goes.

    Thanks,

    Gerroald

    Thread Starter macsuibhne

    (@macsuibhne)

    Hi. I’ve tried it with firewall Learning Mode switched on but the results were the same.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Headers in email’ is closed to new replies.