• Resolved Haja

    (@hajakutbudeen)


    Hello there,

    We know using following code we can send invoice email customer

    WC()->mailer()->emails[‘WC_Email_Customer_Invoice’]->trigger($order);

    Is that anyway to send invoice email to custom email ID ?

    ex:
    $mailer = WC()->mailer();
    $email = WC()->mailer()->emails[‘WC_Email_Customer_Invoice’]->($order);
    $mailer->send( ‘[email protected]’, ‘Invoice’, $email );

    OR

    $email = WC()->mailer()->emails[‘WC_Email_Customer_Invoice’]->(‘[email protected]’, $order);

    is that possible ?

    • This topic was modified 2 years, 2 months ago by Haja.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Woocommerce send email to custom mail id’ is closed to new replies.