If an email is being sent from your website domain, it should now have a FROM address from that domain. This is because emails are being spoofed by spammers and are being sent from a different domain (e.g. I send you a message from my domain but claim to be sending it from paypal.com
). Such messages are being routed into the Spam folder, and so best practice is now to include a FROM email address that is from the website domain. Look at the following setup:
== MAIL ==
To: [email protected]
From: [your-name] <[email protected]>
Subject: Re: [your-subject]
Additional Headers: Reply-To: [your-email]
What happens and why:
1. The mail is sent from the contact form to the email address specified in the TO field.
2. When you receive the message, it will have the sender’s name and be from the “wordpress” email address specified in FROM (Depending in your hosts, this may need to be a real email address (test to see if it processes), and it does need to be @your-domain.com).
3. By including Re: in the SUBJECT, you will ensure that the field always has some text in it, even if the sender does not complete this field (Best practice is to ensure that there is at least some text in the subject field). Or, you can make the SUBJECT a required field in the *Form* by adding an asterisk: [text* your-subject]
4. Adding the Reply-To: [your-email] in ADDITIONAL HEADERS means that you can reply to the sender by hitting the Reply button in your email client.
5. If you want to actually see the sender’s email address in the message you receive you can include it in the MESSAGE section. For example:
MESSAGE BODY:
From: [your-name] <[your-email]>
Subject: [your-subject]
[your-message]