On a ecommerce website which had zen cart, in the “email options” the email address set was a free gmail account. When configured email address as per zen cart documentation we were facing error – where it said :
SMTP Error: Could not connect to SMTP server.
Settings in Zen cart:
E-Mail Transport Method : smtpauth
E-Mail Linefeeds : LF
Use MIME HTML When Sending Emails : true
Verify E-Mail Addresses Through DNS : false
Send E-Mails : true
SMTP Server Host Address tls://smtp.gmail.com or smtp. gmail.com: smtp gmail.com
SMTP Server Port Number : 465
SMTP Authentication Required : true
SMTP Authentication Username your@domain.com or you@ gmail.com : someaccount@gmail.com
SMTP Authentication Password your password : my password
From the server the connection to gmail SMTP was perfect:
root@server [~]# telnet smtp.gmail.com 465
Trying 74.125.79.109...
Connected to smtp.gmail.com (74.125.79.109).
Escape character is '^]'.
So, the connection from server was perfect. But, from zen cart it was not connecting.
Solution:
OpenSSL was not available in PHP. So, we recompiled PHP with OpenSSL support and everything worked just great.
This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.



