Last active
May 29, 2019 11:52
-
-
Save cfxd/29db3801c0dcb234e53a to your computer and use it in GitHub Desktop.
Enable wp_mail() in MailPoet. See http://cfxdesign.com/email-wordpress-posts-to-subscribers-with-mandrill-and-mailpoet/
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
function mailpoet_enable_wpmail(){ | |
if(class_exists('WYSIJA')){ | |
$model_config = WYSIJA::get('config','model'); | |
$model_config->save(array('allow_wpmail' => true)); | |
} | |
} | |
add_action('init', 'mailpoet_enable_wpmail'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't seem to work with Mailpoet 3 anymore. Any clues if it is still possible?