I would like to use the Gmail SMTP server to send email using Zend_Mail . I had this code
Zend_Mail::setDefaultTransport(new Zend_Mail_Transport_Smtp("smtp.googlemail.com", array( "auth" => "login", "username" => " myusername@gmail.com ", "password" => "mypassword", "ssl" => "ssl", "port" => 465 )));
but when I try to send an email, it throws an exception with the message Connection refused .
Where am I mistaken?
source share