Created
May 12, 2016 17:26
-
-
Save BinaryKitten/cce2626ad051f2225868b4a10faf466b to your computer and use it in GitHub Desktop.
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 | |
add_action('phpmailer_init', 'phpmailerSMTP'); | |
/** | |
* @param \PHPMailer $phpmailer | |
*/ | |
function phpmailerSMTP($phpmailer) | |
{ | |
$phpmailer->IsSMTP(); | |
$phpmailer->Host = 'localhost'; | |
$phpmailer->Port = 25; // SMTP Port | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment