Project Donation Email Response Sender Name

I just finished going live and doing a few test donations. When I received an email acknowledging my donation, the sender name showed up in the email as “WordPress.”

I would like to have it come from some other name I create, like the key word of the project site – 6058 Donate so as to be more relative and non-generic.

I can’t for the life of me find any settings anywhere that determines what this should be, unless it is some default code in the appearance editor interface.

  • Vinod Dalvi
    • WP Unicorn

    Hi Thomas,

    I hope you are well today and thank you for your question.

    You can change it by adding the following code in the functions.php file of your child theme.

    function res_fromname($email){
    $wpfrom = get_option('blogname'); // Change the email name here
    return $wpfrom;
    add_filter('wp_mail_from', 'res_fromemail');

    Add whatever string to the variable $wpfrom in the above code that you want to display in place of “WordPress.”.

    Best Regards,

    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.