PHP Classes

TLS not working

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  TLS not working  >  (Un) Subscribe thread alerts  
Subject:TLS not working
Summary:with tls=1 it still does not start tls
Messages:2
Author:Keith Waters
Date:2020-12-01 12:37:56
 

  1. TLS not working   Reply   Report abuse  
Picture of Keith Waters Keith Waters - 2020-12-01 12:37:56
Please help!

when I set this:
$email_message->start_tls=1;

I get this output:
Connecting to SMTP server "52.98.18.50" port 587...
Connected to SMTP server "smtp.office365.com".
S 220 JNXP275CA0004.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 1 Dec 2020 12:36:39 +0000
C EHLO localhost
S 250-JNXP275CA0004.outlook.office365.com Hello [xx.xx.xx.xx]
S 250-SIZE 157286400
S 250-PIPELINING
S 250-DSN
S 250-ENHANCEDSTATUSCODES
S 250-STARTTLS
S 250-8BITMIME
S 250-BINARYMIME
S 250-CHUNKING
S 250 SMTPUTF8
Error: server does not require authentication, it probably requires starting TLS

  2. Re: TLS not working   Reply   Report abuse  
Picture of Keith Waters Keith Waters - 2020-12-01 12:40:40 - In reply to message 1 from Keith Waters
Ah, a silly error on my side

I see now it should have been smtp_start_tls=1;