Title: Contact form problem with e-mails
Last modified: August 31, 2016

---

# Contact form problem with e-mails

 *  Resolved [Nexus1901](https://wordpress.org/support/users/nexus1901/)
 * (@nexus1901)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/contact-form-problem-with-e-mails/)
 * Hello,
 * In my contact form in evolve theme I receive error message in my e-mail account.
 * When a user fills the field “e-mail” with his mail <user@domain.com> and sends
   a message it seems everything Ok but I receive “A message that you sent was rejected
   by the local scanning code that checks incoming messages on this system. The 
   following error was given:
 * Sorry, you don’t have permission to send email from this server with a header
   that states the email is from <domain.com>.
 * I contacted with my hosting support and they said I need to set a FROM email 
   to the one with my own domain’s extension, but I can’t change the configuration
   of the “From” e-mail.
 * Can anybody help me?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Nexus1901](https://wordpress.org/support/users/nexus1901/)
 * (@nexus1901)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/contact-form-problem-with-e-mails/#post-6929279)
 * I’ve just fixed this problem in contact with my hosting provider editing the 
   contact.php file, changing a “From” header for a “Reply-to” header:
 * $headers = ‘Reply-To: ‘ . $name . ‘ <‘ . $email . ‘>’ . “\r\n”;
 *  if ($evolve_sent_email_header) {
    $headers .= ‘From: ‘ . $emailFrom . ‘ <‘ .
   $email . ‘>’ . “\r\n”; } else { $headers .= ‘**Reply-To**: ‘ . $emailTo . ‘ <‘.
   $email . ‘>’ . “\r\n”;
 * Hope this solution can help somebody else.

Viewing 1 replies (of 1 total)

The topic ‘Contact form problem with e-mails’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/evolve/4.3.7/screenshot.png)
 * evolve
 * [Support Threads](https://wordpress.org/support/theme/evolve/)
 * [Active Topics](https://wordpress.org/support/theme/evolve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/evolve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/evolve/reviews/)

## Tags

 * [contact](https://wordpress.org/support/topic-tag/contact/)
 * [e-mail](https://wordpress.org/support/topic-tag/e-mail/)

 * 1 reply
 * 1 participant
 * Last reply from: [Nexus1901](https://wordpress.org/support/users/nexus1901/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/contact-form-problem-with-e-mails/#post-6929279)
 * Status: resolved