Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

Set custom “send from” address for specific email

$
0
0

Replies: 0

I would like to be able to set a custom “send from” address for a particular email. Specifically the WooCommerce customer_new_account email. I am aware of the woocommerce_email_from_address filter and I am able to update the address using the following:

function custom_send_from_address ( $from_email, $wc_email ) {
    if( $wc_email->id == 'customer_new_account' )
        $from_email = 'welcome@midhudsonfuelbuyers.org';
    return $from_email;
}

However, this only seems to update the “reply to” address, not the “sent from” address. We are using the fluentSMTP plugin as well. So I’m not sure if I am missing a step somewhere that would give WordPress access to this email address.


Viewing all articles
Browse latest Browse all 104029

Trending Articles