I recently ran into a problem where the WordPress plugin Contact Form 7 was not sending emails to the site administrator. After several hours of research, I figured out why.
The problem was that the From email address was using the email field from the form. Many email servers are configured so they won’t send an email from your website if the From address does not match your domain name.
For example, if I want Contact Form 7 to send me emails from the form submission on writenowdesign.com, then the From email address must end with writenowdesign.com: email@example.com.
The fix for this problem is fairly simple if your web server handles the email for the domain.
From the Contact Form 7 Mail section of the form, make the following changes:
- In the From field, use an email address that is the same as your domain name.
- In the Additional Headers field, enter the following code: Reply-to: <[email]>
Where is the email field.
Note: The additional headers are not required and the fields can be called whatever you like. The reason for the additional headers is so you can reply to the form submission email and have it automatically addressed to the email the user entered in the form email field.