Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    Thanks!

    #162373

    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

    • This reply was modified 11 years, 3 months ago by Josue.
    #162395

    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

    • This reply was modified 11 years, 3 months ago by silviouk.
    #162720

    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

    #163061

    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

    #163484

    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

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.