Support » Plugin: Kadence WooCommerce Email Designer » Use kadence template with wp_mail()

  • Hi,

    Firstable, thank you for your great plugin.

    I’m actually adding a feature to let user send his wishlist by E-mail, and I’d like to use the woocommerce template I designed.

    Is there any simple solution to send a custom E-mail via wp_mail() (or any other method) using the template we designed with your plugin ?

    I’d like to add the header, the product table and the footer like in my Kadence template.

    Thank you for your help.

    Have a nice day.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nartoof


    I’ve found the answer by myself with this snippet :

    $mailer = WC()->mailer();
    $wrapped_message = $mailer->wrap_message($heading, $message);
    $wc_email = new WC_Email;
    $html_message = $wc_email->style_inline($wrapped_message);
    $email_headers = array('Content-Type: text/html; charset=UTF-8');
    wp_mail( $email, $sujet, $html_message, $email_headers );
    • This reply was modified 8 months, 1 week ago by nartoof.


    Glad you found a solution! Let us know if there’s anything we can help you with.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use kadence template with wp_mail()’ is closed to new replies.