• Good morning,
    I’m using contact form 7 for long time but I still get confused sometimes and today I just want to clarify, once for all, some doubts :).

    The “From” field specifies the email address of the sender, if the sender is the person who fills the form in, we don’t know who is going to fill in the form, right?
    So why the default field value reports a email address of the site domain?
    [your-name] <[email protected]>?

    Why I cannot use in the “From” field this:
    [your-name] <[your-email]>
    (it is considered an error:”This email address does not belong to the same domain as the site”).
    In your documentation I find “You can also use another format consisting of a name and an email address surrounded by “<” and “>“.”. I tried using the email tag because I don’t know who fills the form. Very confused :(. Thank for helping me understand in this last day of the year :D!

Viewing 1 replies (of 1 total)
  • 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 asking for login details but claim to be 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]>
        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. 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.
    4. 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]
    
    • This reply was modified 7 years, 11 months ago by barnez.
    • This reply was modified 7 years, 11 months ago by barnez.
Viewing 1 replies (of 1 total)
  • The topic ‘“From” field’ is closed to new replies.