PHP Classes

Not working with Office 365

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  Not working with Office 365  >  (Un) Subscribe thread alerts  
Subject:Not working with Office 365
Summary:Not working with Office365
Messages:2
Author:Jorge Hernandez
Date:2014-02-27 16:57:54
Update:2014-02-27 18:26:10
 

  1. Not working with Office 365   Reply   Report abuse  
Picture of Jorge Hernandez Jorge Hernandez - 2014-02-27 16:57:54
I'm testing this class to send emails via Office 365 using

Host name: smtp.office365.com
Port: 587
Encryption: TLS
Username: email

But I'm getting this:

Resolving SMTP server domain "smtp.office365.com"...
Connecting to host address "132.245.8.166" port 587...
Connected to SMTP server "smtp.office365.com".
S 220 BLUPR03CA036.outlook.office365.com Microsoft ESMTP MAIL Service ready at Thu, 27 Feb 2014 16:43:39 +0000
C EHLO localhost
S 250-BLUPR03CA036.outlook.office365.com Hello [xxx.xxx.xxx.xxx]
S 250-SIZE 78643200
S 250-PIPELINING
S 250-DSN
S 250-ENHANCEDSTATUSCODES
S 250-STARTTLS
S 250-8BITMIME
S 250-BINARYMIME
S 250 CHUNKING
C STARTTLS
S 220 2.0.0 SMTP server ready
Starting TLS cryptograpic protocol
Could not send the message to user@gmail.com. Error: could not start TLS connection encryption protocol

I waqs told before not to use STARTTLS but use TLS, does this class do that?

Thanks.

  2. Re: Not working with Office 365   Reply   Report abuse  
Picture of Jorge Hernandez Jorge Hernandez - 2014-02-27 18:26:10 - In reply to message 1 from Jorge Hernandez
Never mind, it works when sasl is added.