Login   Register  
PHP Classes
elePHPant
Icontem

Does class support ssl via socks?

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      SMTP E-mail sending class  >  All threads  >  Does class support ssl via socks?  >  (Un) Subscribe thread alerts  
Subject:Does class support ssl via socks?
Summary:socks works only when ssl=0 or tls=1
Messages:2
Author:Alex
Date:2012-08-28 17:32:48
Update:2012-08-28 20:56:19
 

  1. Does class support ssl via socks?   Reply   Report abuse  
Picture of Alex
Alex
2012-08-28 17:32:48
SSL = 1

Resolving SMTP server domain "smtp.gmail.com"...
Could not send the message to example@gmail.com.
Error: could not connect to the host "smtp.gmail.com":

SSL = 0 // Error is ok, because gmail doesn't work without ssl

Resolving SMTP server domain "smtp.gmail.com"...
Connected to the SOCKS server 192.168.1.1
Negotiating the authentication method ...
Connecting to SMTP server IP 173.194.71.108 port 465...
Connected to SMTP server "smtp.gmail.com".
Could not send the message to example@gmail.com.
Error: it was not possible to read line from the SMTP server: data access time out

SSL = 0 AND start_tls=1 works fine with gmail via socks

Best Regards, Alex

P.S. Dear Manuel Lemos, Thank you very much for your brilliant email classes.

  2. Re: Does class support ssl via socks?   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-08-28 20:56:19 - In reply to message 1 from Alex
Yes, for now secure connections can only be established with SSL directly or via socks using start TLS because that is the way to start a secure connection on the top of a non-secure connection with the socks server.