• Resolved alxhobby

    (@alxhobby)


    So I’m trying to set the sender email for the “New Account” and “Password Reset” to “[email protected]”. Currently WooCommerce settings has “[email protected]” as the default sender email address and that works fine for all the other emails. I’ve tried several different snippets but most of them are outdated by 3+ years so the syntax is probably wrong and they do not work. The problem is that the emails for “New Account” and “Password Reset” are not sending to the customer’s inbox. Using Fluent SMTP and have setup both ‘[email protected]’ and ‘[email protected]’ using the plugin .If someone could let me know what I’m doing wrong I would greatly appreciate it! Here’s what I’ve tried so far:

    // Change sender address
    add_filter( ‘woocommerce_email_from_address’, function( $from_email, $wc_email ){
    if( $wc_email->id == ‘customer_new_account’ )
    $from_email = ‘[email protected]’;

    return $from_email;
    }, 10, 2 );

    add_filter( ‘woocommerce_email_from_address’, function( $from_email, $wc_email ){
    if( $wc_email->id == ‘customer_reset_password’ )
    $from_email = ‘[email protected]’;

    return $from_email;
    }, 10, 2 );`

    AND

    // Email From
    add_filter( ‘woocommerce_email_from_address’, ‘change_from_email’, 10, 3 );
    function change_from_email( $from, $email ) {
    if( $email->id == ‘customer_reset_password’ ){
    $from = ‘[email protected]’;
    }
    return $from;
    }
    AND

    // Change Sender Per Email
    add_filter( ‘woocommerce_email_from_address’, ‘my_email_from_address’, 10, 2 );
    function my_email_from_address ( $from_email, $wc_email ) {
    // Targeting specific email notification via the email id
    if ( $email->id == ‘customer_reset_password’ || ‘customer_new_account’ ) {
    $from_email = ‘[email protected]’;
    }
    }

    return $from_email;

Viewing 1 replies (of 1 total)
  • Plugin Support angelagrey

    (@angelagrey)

    Hi,

    Thank you for reaching out to us.
    The sender email address is added here in the WooCommerce settings: https://prnt.sc/-DtrCgW8sAbW
    And this field is not managed by our plugin, so you would need to contact the support team of WooCommerce instead for advice/solution.

    Regarding the issue of the 2 emails “New account” and “Reset password” don’t come to customers’ addresses, please check this issue when our plugin Email Template for WooCommerce is deactivated.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘WooCommerce Set Sender Email For “New Account” and “Password Reset”’ is closed to new replies.