where to change the From email name?

Posted in

Currently all notifications are coming from “WORDPRESS” in the name field.
Where to change that??


3 Responses to where to change the From email name?

  1. Javier Grac April 6, 2020 at 7:30 pm #

    Thanks for this.
    but seems like there are syntax errors at these lines:
    return ‘javier@xyz.com’;


    return ‘Javier Grac’;

    I am not a programmer so I dont know how to fix those.
    please advice

    • Eugen Bleck April 7, 2020 at 12:17 am #

      Hi Javier,

      Please use single quotes.

      Better still remove the code snippet I sent to you and install this plugin: https://wordpress.org/plugins/cb-change-mail-sender/. I saw so because you mentioned you are not a programmer and that would be the most ideal solution for you.

      Or You can follow this resource:

      Kindest regards,

  2. Eugen Bleck April 6, 2020 at 3:32 pm #

    Hi Javier,

    Thanks for reaching out and for using Affiliates and its extensions.

    Here’s a code snippet to help you change the default Sender Name and Email Address.
    Please add the following code snippet in your child-theme’s functions.php or the theme:

    // Function to change email address
    function wpb_sender_email( $original_email_address ) {
    return ‘javier@xyz.com’;
    // Function to change sender name
    function wpb_sender_name( $original_email_from ) {
    return ‘Javier Grac’;
    // Hooking up our functions to WordPress filters
    add_filter( ‘wp_mail_from’, ‘wpb_sender_email’ );
    add_filter( ‘wp_mail_from_name’, ‘wpb_sender_name’ );

    Stay safe!

    Kindest regards,

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account