Recently I had trouble configuring my contact-form 7 plugin, because all of the email sent from it went to my gmail spam folder.
Luckily there is a very easy workaround for this issue. Usually the contact form configuration looks like this:
But this is no-go, because the FROM header field will most likely differ from your domain name, and the mail ends up in the spam folder. You can test it with a random email address, but you probably get a similar message in your email header:
Received-SPF: softfail (google.com: domain of transitioning ***@domain.com does not designate X.Y.Z.N as permitted sender)
However I got my SPF MX record configured correctly, I still got a similar error message. Here is a tutorial how to make sure you have the right configuration.
I figured, if I change the FROM field to match the TO field and add a Reply-to header, it should solve the issue, and it did! All I changed was:
I added the reply-to fields to additional headers:
Reply-to: [your-name] <[your-email]>
Of course you need to change it to your custom form fields, if you have any.
Latest posts by Ernest Marcinko (see all)
- Ajax Search Pro for WordPress 4.15 to 4.16.2 developer notes - July 1, 2019
- 10 000 - October 30, 2018
- Ajax Search Pro for WordPress 4.13.2 to 4.14.1 developer notes - October 9, 2018