where to change the From email name?

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

thanks

Posted in

Comments

3 responses to “where to change the From email name?”

  1. Javier Grac Avatar
    Javier Grac

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

    and

    return ‘Javier Grac’;

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

    1. Eugen Bleck Avatar
      Eugen Bleck

      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,
      Eugen.

  2. Eugen Bleck Avatar
    Eugen Bleck

    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,
    Eugen.

Share