Support » Plugin: Contact Form 7 » This email address does not belong to the same domain as the site.

  • Resolved GhyslainChocolatier

    (@ghyslainchocolatier)


    I’m getting the above configuration error in Contact Form 7 “From” field. I’ve had it set to [your-name] <[your-email]> since I installed it a year ago. It worked fine. Now it says “This email address does not belong to the same domain as the site” and emails will not come through. If I set the “From” field to an email address matching our site domain, the email goes through. However, we can’t reply to that email anymore since it’s not the sender’s email address. What changed? What am I missing?

    https://wordpress.org/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
  • barnez

    (@pidengmor)

    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: info@your-domain.com
    From: [your-name] <wordpress@your-domain.com>
    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]

    Thread Starter GhyslainChocolatier

    (@ghyslainchocolatier)

    Thank you, barnez! Adding the code to additional headers worked great.

    barnez

    (@pidengmor)

    Happy to hear that helped!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘This email address does not belong to the same domain as the site.’ is closed to new replies.