• Resolved Artprofile

    (@artprofile)


    HI, I’m trying to change the sender name (display “name” and not “WordPress”).
    I log to my ftp and inside the plugin there is some files, if I put this code on main.php it could work? Which is the right file to add the code?

    This is the code:
    // Function to change email address

    function wpb_sender_email( $original_email_address ) {
    return ‘nameexaple@example.com’;
    }

    // Function to change sender name
    function wpb_sender_name( $original_email_from ) {
    return ‘NameExample’;
    }

    // Hooking up our functions to WordPress filters
    add_filter( ‘wp_mail_from’, ‘wpb_sender_email’ );
    add_filter( ‘wp_mail_from_name’, ‘wpb_sender_name’ );

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Artprofile

    (@artprofile)

    I found this from plugin site and it WORKS!!!!!
    https://easy-appointments.net/support/change-sender-name-wordpress-in-email-to-user/

    …it’s really simple. You just need to put in field Send from (EasyAppointments > Settings > Customize page) value like this :

    Some Name<some@email.com>

    after that it will instead of WordPress show Some Name.

    Best regards,
    Nikola

    • This reply was modified 6 years ago by Artprofile.
    taohi

    (@taohi)

    Is it possible to translate the content of the E-mail the sender will receive?

    Example:

    Subject: Your request  

    Dear Madam / Sir #name#,
    Thank you for requesting #date# for a 3d photography in our studio. 

    We will respond to your request as soon as possible. 

    Via the following link you can cancel your reservation again:  Cancel appointment

    etc. etc.  

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change sender name’ is closed to new replies.