Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #162306

    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.




    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');


    • This reply was modified 2 years, 2 months ago by  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.


    • This reply was modified 2 years, 2 months ago by  silviouk.


    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';



    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/ on line 7



    The code seems to be correct (no syntax errors, etc.). Please try to insert it at the very end of functions.php.

    Best regards,

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

The topic ‘How can I remove From: WordPress that appears in emails sent via website?’ is closed to new replies.