email - zend framework gmail -


i'm trying use zend mail sending in 1 of application.

i'm not sure basic requirement using zend_mail.

$this->transport = new zend_mail_transport_smtp(         'smtp.gmail.com',          array(             'ssl'=> 'tls',             'port'=> '587',             'auth'=> 'login',              'username'=> 'email@email.com',              'password'=> 'password'     ));  zend_mail::setdefaulttransport($this->transport); 

and while sending mail

$mail->send($this->transport); 

and handled error using

$e->getcode().$e->getmessage();  

script gives me error 05.5.2

i'm not able understand issue.

the port should 465!!!! works. me well!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -