Skip to content

Instantly share code, notes, and snippets.

@BinaryKitten
Created May 12, 2016 17:26
Show Gist options
  • Save BinaryKitten/cce2626ad051f2225868b4a10faf466b to your computer and use it in GitHub Desktop.
Save BinaryKitten/cce2626ad051f2225868b4a10faf466b to your computer and use it in GitHub Desktop.
<?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