• Resolved walleniumcore

    (@walleniumcore)


    Hi there,

    I’m looking to add a recipient to the customer-invoice email in order to parse it using sendgrid (i.e. every email will be sent to [email protected] in addition to the customer email).

    This is what I currently have:

    add_filter( 'woocommerce_email_headers', 'add_email_recipient_cc', 9999, 3 );
    function add_email_recipient_cc( $headers, $email_id, $order ) {
    if ( 'customer_invoice' || 'new_rfq' == $email_id ) {
    $headers .= "Cc: Wallenium [email protected]" . "\r\n"; //works!
    //$email_recipient .= ', [email protected]'; //doesn't work ??
    }
    return $headers;
    }

    CC, unfortunately, doesn’t work for inbound parse, so I need to actually add the email as a recipient. Do you know how I might do this?

  • The topic ‘Looking to add an email recipient to the outgoing customer-invoice email’ is closed to new replies.