zend framework - Zend_Mail_Transport_Smtp for Zoho mail -


i have been trying use zoho mail send emails. have found lot of examples on how gmail, not zoho. gmail works fine same code (different port , server, or course)

$mailconfig = array(     'ssl' => 'tls',     'port' => '465',     'auth' => 'login',     'username' => [username],     'password' => [password]);      $transport = new zend_mail_transport_smtp('smtp.zoho.com', $mailconfig);      zend_mail::setdefaulttransport($transport); 

when try send email, error:

'zend_mail_protocol_exception' message 'could not read smtp.zoho.com' in /applications/mamp/zend/zend1.11/library/zend/mail/protocol/abstract.php:385

does know how connect zoho smtp?

i had exact same issue. worked me doing following. tls works gmail, zoho, need use "ssl" ssl option port number 465 used.

this how have mine setup:

$mailconfig => array(     'name'              => '<domain>',     'host'              => 'smtp.zoho.com',     'port'              => 465,     'connection_class'  => 'login',     'connection_config' => array(             'username' => '<user@domain>',             'password' => '<my_password>',             'ssl'      => 'ssl',     ), ), 

just change <domain>, <user@domain>, , <my_password> , should trick!


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -