Created
March 27, 2017 16:51
-
-
Save vovadocent/19b3b2c983b606e980ce3ffa41b6fff8 to your computer and use it in GitHub Desktop.
Send Email By Woocommerce Mailer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// set subject | |
$subject = 'WC Send Mail Test'; | |
// load the mailer | |
$mailer = WC()->mailer(); | |
$mailer->send( get_option( 'admin_email' ), $subject, $mailer->wrap_message( $subject, 'a test message' ), '', '' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment