Title: Email FROM &quot;syntax error&quot;
Last modified: August 31, 2016

---

# Email FROM "syntax error"

 *  [arcensoft](https://wordpress.org/support/users/arcensoft/)
 * (@arcensoft)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/email-from-syntax-error/)
 * Hello,
 * I use in the field FROM
    [your-last-name] <[your-email]>
 * It was working before but now i have “This field has syntax errors.”
 * This is the last name and the email from the person who send me this email.
 * This is my form :
    Votre nom* [text* your-last-name placeholder “votre nom”] 
   Votre prénom* [text* your-first-name placeholder “votre prénom”] Votre email*[
   email* your-email placeholder “votre email”]
 * Can you give me the good syntax for the FROM field ?
 * Thanks.
 * Fabrice Henry.
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/email-from-syntax-error/#post-7241680)
 * 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 ==
           From: [your-name] <wordpress@your-domain.com>
           Additional Headers: Reply-To: [your-email]
       ```
   
 * 1. 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).
    2. 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. 3. 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]
       ```
   
 * Hope this helps.
 *  [Juergen Schulze](https://wordpress.org/support/users/1manfactory/)
 * (@1manfactory)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/email-from-syntax-error/#post-7241821)
 * No, this does not help.
    No matter how often you crosspost your answer. It is
   a valid behavior to “fake” an email address from. The emails send are sent to
   ME (ME ME ME ME ME ME ME!!!!) I decide whether it is spam or not. And because
   it is from MY MY MY MY MY !!!! server it is NOT NOT NOT NOT spam. This “error”
   message is solely for people who don’t know what they are doing.
 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/email-from-syntax-error/#post-7241823)
 * [@juergen](https://wordpress.org/support/users/juergen/) Schulze
 * The OP asked:
 * >  Can you give me the good syntax for the FROM field
 * This is what I responded to given the changes to CF& in version 4.4. regarding
   best practices to avoid mail being regarded as spam by mail servers.
 * >  No, this does not help.
   >  No matter how often you crosspost your answer.
 * It works for users who want to modify their forms’ syntax so it passes the new
   validation checks for best practice.
 * If you’re happy with your setup then why not merely disable the validation check:
 *     ```
       define( 'WPCF7_VALIDATE_CONFIGURATION', false );
       ```
   
 *  [chipster12345](https://wordpress.org/support/users/chipster12345/)
 * (@chipster12345)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/email-from-syntax-error/#post-7241824)
 * Please help, I have the same problem, didn’t adjust anything just updated the
   plug-in and now every **Mail From** has a syntax error…, I’ve worked around this.
 * BUT – now need help with a **Mail To** field that won’t accept the standard convention[
   friend-email]. I’ve got to get this form going again and need someone who has
   overcome this issue to give advice, thanks!
 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/email-from-syntax-error/#post-7241825)
 * [@chipster12345](https://wordpress.org/support/users/chipster12345/)
 * I suggest that you start a new topic, and include screen shots of your FORM and
   MAIL configurations. Also, try to explain what you mean by
 * >  need help with a Mail To field that won’t accept the standard convention
 * For example:
    There is a validation error The message won’t send The message 
   is not received
 *  [chipster12345](https://wordpress.org/support/users/chipster12345/)
 * (@chipster12345)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/email-from-syntax-error/#post-7241826)
 * Syntax error, won’t save form
 * Link to what I’m seeing is here: [http://goo.gl/krWLef](http://goo.gl/krWLef)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Email FROM "syntax error"’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [from field](https://wordpress.org/support/topic-tag/from-field/)

 * 6 replies
 * 4 participants
 * Last reply from: [chipster12345](https://wordpress.org/support/users/chipster12345/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/email-from-syntax-error/#post-7241826)
 * Status: not resolved