Arquivo da tag: PHP

Unable to send emails to Office365 mail accounts or use Office365 for SMTP

require("phpMailer/PHPMailerAutoload.php");
$mail = new PHPMailer(true);
$mail->IsSMTP();
$mail->CharSet = 'UTF-8';
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->SMTPSecure = 'tls';
$mail->Host = 'smtp.office365.com';
$mail->Username = "angel@soriallc.com"; // SMTP username, the email is an office365 email using a 'business domain'
$mail->Password = ""; // SMTP password
$mail->Port = 587;

https://github.com/PHPMailer/PHPMailer/issues/466