I am trying to configure PHPMailer so that one of our clients can automatically receive emails from their account. I logged into my Office 365 account and found that the required settings for PHPMailer are:
Host: smtp.office365.com Port: 587 Auth: tls
I applied these settings to PHPMailer, however no email is sent (the function that I call works fine for our own mail, which is sent from an external server (not the server serving the web pages).
"host" => "smtp.office365.com", "port" => 587, "auth" => true, "secure" => "tls", "username" => " clientemail@office365.com ", "password" => "clientpass", "to" => "myemail", "from" => " clientemail@office365.com ", "fromname" => "clientname", "subject" => $subject, "body" => $body, "altbody" => $body, "message" => "", "debug" => false
Does anyone know what settings are needed to send PHPMailer via smtp.office365.com?
source share