and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I use Swift and Google's gmail as a smtp server. I can send emails but get an error:
Sun, 08 Oct 2006 10:56:54 +0300; fgets() [function.fgets]: SSL: fatal protocol error (error type 2 in /home/hyperpol/public_html/missionangels/swift/Swift.php on line 851) [context: Array]
I didn't see the error without using "clsErrorHandle" class.
This is exacly the place where the error comes in Swift.php:
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
$swift = new Swift(new Swift_Connection_SMTP('smtp.gmail.com', SWIFT_SECURE_PORT, SWIFT_TLS));
//Log in to the server
$swift->authenticate('myemail@gmail.com', 'password');
And it really sends the email. It seems that this error does not prohibit that but maybe does not read from the SMTP server over SSL.
/me ponders if the connection is being dropped upon QUIT being called and before sending a 250 OK response. I'll patch something into the code and see if it helps.