label: wordpress With this hook wordpress will send emails using a gmail account
function custom_phpmailer_init($PHPMailer)
{
$PHPMailer->IsSMTP();
$PHPMailer->SMTPAuth = true;
$PHPMailer->SMTPSecure = 'ssl';
$PHPMailer->Host = 'smtp.gmail.com';
$PHPMailer->Port = 465;
$PHPMailer->Username = 'youremail@gmail.com';
$PHPMailer->Password = 'yourpassword';
}
add_action('phpmailer_init', 'custom_phpmailer_init');