• Hi,

    I want to send Emails using your Email Template programmatically but I got an error.

    When I try to call $wc_emails['WC_Customer_Pending_Payment']->trigger( $order->get_id() ); I got an error saying Uncaught Error: Call to undefined method WC_Customer_Pending_Payment::trigger().

    While analyzing further I got 2 issues.
    1. In ‘/emails/class-wc-customer-pending-payment.php’, function trigger() is not a method of Class WC_Customer_Pending_Payment and its not “public”.
    2. I see echo $this->recipient; exit; in the above function.

    Can you able to fix this immediately?

    Thanks

  • The topic ‘Not able to send Emails programmatically’ is closed to new replies.