This file contains hidden or 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 | |
| /** | |
| * Adapted from https://wordpress.stackexchange.com/a/191974/8591 | |
| * | |
| * Send mail, similar to PHP's mail | |
| * | |
| * A true return value does not automatically mean that the user received the | |
| * email successfully. It just only means that the method used was able to | |
| * process the request without any errors. | |
| * |
This file contains hidden or 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 | |
| function sendWithPhpMailer($subject, $body, $reply) { | |
| require(ABSPATH . WPINC . '/class-phpmailer.php'); | |
| require(ABSPATH . WPINC . '/class-smtp.php'); | |
| // date_default_timezone_set( 'America/Sao_Paulo' ); | |
| $blogname = wp_strip_all_tags( trim( get_option( 'blogname' ) ) ); | |
| $smtpHost = wp_strip_all_tags( trim( get_option( 'smtp_host' ) ) ); |
OlderNewer