Contact form from address

Latest Reply from Alice at 2014-12-09 08:17:47
When someone fills out the contact form I get an email from "wordpress@mysite.com" is there somewhere I can change that from email?
Hi!
You will always get emails from an email specified on page Theme Settings --> Contact Form. The sender's address is in the message.
Same problem over here using Vaccination theme's Contact Form on clean Wordpress 4.0 installation.

The address you specify on Theme Settings -> Contact Form is the To: address and not the Reply-to address.

How to set the Reply-to addres other than wordpress@yourdomain.com?
Hi!

To customize this address you have to edit feedback.php located in the themes folder. Find the code:
if ($error=='') {
wp_mail($SMTheme->get( 'contactform', 'email' ), 'Message from '.$from, $msg);
$error=$SMTheme->_( 'emailok' );
$errorcode='green';
}

And replace it with:
if ($error=='') {
$headers = 'From: <YOUR@EMAIL.com>' . "\r\n";
wp_mail($SMTheme->get( 'contactform', 'email' ), 'Message from '.$from, $msg, $headers );
$error=$SMTheme->_( 'emailok' );
$errorcode='green';
}

Don't forget to add your email.
Sorry for my bad english.

I've the same problem and already read al the topics en eddit the code. But it still doesn't work. Anyone a solotion.

Hi there!

Have you replaced the code as it is written above? Perhaps, you have another kind of problem. Could you give us the URL of your website, please.

Leave a reply

Add codeAdd image