login about faq

I get the following error when trying to send email using outlook.office365.com

    DllDate: Aug 15 2013
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 1
      SmtpHost: outlook.office365.com
      SmtpPort: 587
      SmtpUsername: *                                                                                                                                          
SmtpSsl: 1 StartTLS: 1 Need new SMTP connection checkForExistingConnection: Elapsed time: 0 millisec SMTP_Connect: Connecting to SMTP server outlook.office365.com:587 smtp_host: outlook.office365.com smtp_port: 587 smtp_user: * ConnectTimeoutMs_1: 30000 calling ConnectSocket2 IPV6 enabled connect with NO heartbeat. connectingTo: outlook.office365.com ... connect successful (1) clientHelloMajorMinorVersion: 3.1 buildClientHello: majorVersion: 3 minorVersion: 1 numRandomBytes: 32 sessionIdSize: 0 numCipherSuites: 10 numCompressionMethods: 1 --buildClientHello readIncomingTls_serverHello: readTlsRecord: v50.48, ct=50, sz=8258 Timeout waiting to read socket or accept connection timeoutMs: 30000 Failed to read TLS record (2) tlsRec_msg: 104 msgLen: 8258 --readTlsRecord --readIncomingTls_serverHello Expected ServerHello but did not receive it. Client handshake failed. (3) Failed to connect to SMTP server. --SMTP_Connect smtpConnect: Socket timeout. checkOrMakeSmtpConnection: Elapsed time: 30186 millisec --SmtpConnect Failed to connect to SMTP server --SmtpNoop --ChilkatLog

asked Jul 02 '14 at 19:22

chilkat's gravatar image

chilkat ♦♦

edited Jul 02 '14 at 19:28

Port 587 is the explicit SSL/TLS port for the SMTP protocol. The implicit SSL/TLS port is 465. The difference between implicit SSL and explicit SSL is that for implicit, the SSL handshake begins immediately after establishing the TCP socket connection. For explicit SSL, the SSL handshake (i.e. the conversion of the TCP socket connection to an SSL/TLS secure channel) happens when the SMTP client explicitly sends a command to the server to initiate the SSL handshake. In the SMTP protocol, this happens with the "STARTTLS" SMTP command.

Therefore, to use explicit SSL with port 587, set the mailman.StartTLS property = 1 (which is for explicit SSL/TLS), but leave the mailman.SmtpSsl property = 0 (which is for implicit SSL/TLS). It never makes sense to set both the SmtpSsl and StartTLS properties = 1.


answered Jul 02 '14 at 19:26

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 02 '14 at 19:22

Seen: 3,167 times

Last updated: Jul 02 '14 at 19:28

powered by OSQA