Did you try TLS on port 25?

Since you're getting the error from the SSL stream itself it sounds like it can't negotiate properly. Just to help solve the problem, which version of ZF are you using and which version of PHP? I saw from your later post that SSL is correctly compiled into your copy of PHP.

Cheers



Jack Sleight wrote:

And it should definitely be TLS not SSL.



tried that:

        $config = array(        
                                                'auth'          => 'login',
                                                        'username'      => 
'[EMAIL PROTECTED]',
                                                'password'      => 'secret',
                                                'ssl'           => 'tls',
                                                'port'          => 587
                                        );                                      
        
        $tr = new Zend_Mail_Transport_Smtp('smtp.googlemail.com', $config);
        Zend_Mail::setDefaultTransport($tr);


still this error:
Warning: fgets() [function.fgets]: SSL: fatal protocol error in
D:\adat\awebsites\ev-manager\mvc-site\lib\Zend\Mail\Protocol \Abstract.php on
line 303
Fatal error: Exception thrown without a stack frame in Unknown on line 0

--
View this message in context: 
http://www.nabble.com/Zend_Mail---how-to-use-Zend_Mail_Transport_Smtp-for-googlemail.com-tf4097373s16154.html#a11652871
Sent from the Zend Framework mailing list archive at Nabble.com.



--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124
http://www.peptolab.com

Reply via email to