Hi,
I'm trying to set up a PHP-Script which is working with PHP-Mailer to send Mails from an internal server to our customer.
require_once('/scripts/PHPMailer-master/PHPMailerAutoload.php');
$mail = new PHPMailer();
$mail->CharSet = 'UTF-8';
$mail->isSMTP();
$mail->SMTPDebug = 2;
$mail->Host = "smtp.office365.com";
$mail->Port = 587;
$mail->SMTPSecure = 'tls';
$mail->SMTPAuth = true;
$mail->Username = *** Email address is removed for privacy ***;
$mail->Password = "password";
I already set up a connector on the Office 365 Exchange. The extension=php_openssl.dll in php.ini is set up as well. Credentials were checked multiple times and if I enter a wrong Password there is the same error message.
I hope someone knows a possible solution for this Problem.
Thank you.