• Resolved TheSupercargo

    (@thesupercargo)


    I just submitted this message to the Plugin: Contact Form 7 Configuration Validator. The initial quote comes from there. My problem is that even though I am using the following formula:

    <p>Your e-mail (obligatory)<br/>
    [email* your-email] </p>

    I’m still getting the following error: “Sender email address does not belong to the site domain.”

    This is what the FAQ says…

    Why does the email address in the From field have to belong to the site domain?

    For example, if a mail had “[email protected]” in the From field, but was actually sent from your web server (it’s not yahoo.com), it would be highly possible that relaying mail servers consider it as a spoofed address. If you use an email address in the same domain as the site, you can reduce the risk of being treated like that.

    I have re-read this repeatedly and followed your links in a circle and I still can’t make head or tail of what you want me to write here. Am I supposed to be writing
    [email* your-email [email protected]] ???

    PLEASE PLEASE PLEASE give an example of good practice!

    Thanks for what is otherwise an excellent plugin.

    John

Viewing 4 replies - 1 through 4 (of 4 total)
  • bhogben

    (@bhogben)

    So the below is an example of what it should look like

    You get the user email from the message body and the additional headers, not the from field

    To:
    [email protected]

    From:
    siteaddress.co.uk <[email protected]>

    Subject:
    Site Enquiry

    Additional Header:
    Reply-To: [your-email]

    Message body:
    From: [your-name] <[your-email]>

    • This reply was modified 7 years ago by bhogben.
    barnez

    (@pidengmor)

    Your form-tag is fine: [email* your-email]

    You need to make 3 changes in the MAIL section of CF7:

    1. From: [your-name] <[email protected]> (replace YOUR-DOMAIN.COM with the site domain) (Also, this assumes you use the [your-name] form-tag)

    2. Additional Headers: Reply-To: [your-email]

    3. Message Body From: [your-name] <[your-email]>

    To explain, #1 means the email From address is now correct, as the form is being sent from that domain, not from the sender’s email provider; ‘#2 means that when the email arrives in your mail client you can hit Reply to respond to the sender’s email address; #3 is optional, but this allows you to see the sender’s name and email address at the top of the actual message, again you use the [your-name] in the form.

    Thread Starter TheSupercargo

    (@thesupercargo)

    Thank you barnez! A great help.

    (Thanks also to bhogben, but barnez’ explanation was clearer.)

    John

    barnez

    (@pidengmor)

    Happy to hear that you’re up and running.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘your-email error – good practice example wanted!’ is closed to new replies.