php - CakePHP SwiftMailer SMTP TLS OpenSSL Error SSL3_GET_RECORD:wrong version number -


I'm trying to send an email using the cake php swift mailer component that I found here:

The server I am using SMTP with TLS on port 25. I am sending an error when I try to send mail:

  Notice (8): Trying to get non-object assets [APP / views / helpers / HDL_session.fp, Line 14] Warning (2): stream_socket_client () [function.stream-socket-client]: Failed with SSL operation code 1. OpenSSL error message: Error: 1408F10b: SSL routine: SSL3_GET_RECORD: Wrong version number [Core / Vendor / class / swift / transport / streambuffer.fp, line 271] Error: (2): Stream_socket_client () [function.stream-socket-client]: Failed to enable crypto [core / vendors / class / swift / transport / streambuffer.fp, line 271] Warning (2): stream_socket_client () [Function.stream-socket-client]: unable to connect to tls: //mail.aedisit.com: 25 (unknown error) [core / vendors / class / swift / transport / streambuffer.fp, line 271] warning ( 2): Isset or invalid offset type in empty [core / cake / lbs / EILN.FP, line 177] Warning (2): Header information can not be modified - Headers have already been sent (output / srv / www / stage / hypercool / cake / envelope / debugger.fp: 673) [ Core / Cake / LBS / Controller / Controller. FTP, Line 742]   

Here is the OpenSSL information from my phpinfo:

  openssl OpenSSL support Enable OpenSSL Library version OpenSSL 0.9.8o 01 Jun 2010 OpenSSL header version OpenSSL 0.9.8o 01 Jun 2010   

And some more information from my phpinfo Re:

  PHP version 5.3.5-1ubuntu7.2 registered stream socket transport TCP, UDP, Unix, UDG, SSL, SSLV3, SSLV2, TLS   

There is a lot of help in the SPL error message: Error: 1408F10b: SSL routine: SSL3_GET_RECORD:

edit:

Wrong version number

This seems to be the root cause of the problem. Does anybody know what that means?

We have solved this issue, the problem appeared with our SSL version and the Connect Mode of Swift Mailer was. Swift Mailer component was trying to connect to using TLS when instead it was necessary to connect it in plain text, and then the TLS connection was initiated. Hope this problem helps someone else.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -