Hi there,
As you changed the support forum I can’t find any reference to this issue.
I want to remove <From: WordPress> that appears in the email address reply line when emails are sent from/to the site contact form.
Thanks!
Hi,
You can change it by adding this to the functions.php file:
add_filter('wp_mail_from', 'YOUR_EMAIL');
add_filter('wp_mail_from_name', 'YOUR_NAME');
Regards,
Josue
Hi thanks,
I inserted this code and now when an email is sent there is no from email address or reply address.
I also tried placing my email address in the script etc.
Silvio
Hey,
Please use this:
add_filter('wp_mail_from', 'new_mail_from');
add_filter('wp_mail_from_name', 'new_mail_from_name');
function new_mail_from($old) {
return 'your email address';
}
function new_mail_from_name($old) {
return 'your name or your website';
}
Regards,
Ismael
This didn’t work.
I placed the above code in the functions.php and my site broke. I had to re-install a new functions.php.
This is the error message was:
Fatal error: Call to undefined function avia_header_setting() in /var/www/vhosts/northeastbarristers.com/httpdocs/wp-content/themes/enfold/header.php on line 7
Hey!
The code seems to be correct (no syntax errors, etc.). Please try to insert it at the very end of functions.php.
Best regards,
Peter