I'm trying to use the fEmail class with the fSMTP class but I can't seem to get a sample message to work. fsockopen is timing out inside fSMTP, here is an XDebug stack trace (with personal information redacted)
( ! ) Fatal error: fsockopen() [function.fsockopen]: unable to connect to tls://smtp.google.com:465 (Operation timed out) in flourish/fSMTP.php on line 409
Call Stack
# Time Function Location
1 0.0010 {main}( ) ../route.php:0
2 0.0545 include( 'sandbox.php' ) ../route.php:115
3 0.2995 EmailNotifier->notify( ) ../sandbox.php:21
4 0.3119 fEmail->send( ) ../EmailNotifier.php:91
5 0.3182 fSMTP->send( ) ../fEmail.php:1178
6 0.3182 fSMTP->connect( ) ../fSMTP.php:494
7 0.3182 fsockopen ( ) ../fSMTP.php:223
8 5.3186 fSMTP->handleError( ) ../fSMTP.php:0
9 5.3186 trigger_error ( ) ../fSMTP.php:409
I thought maybe there was an issue with OpenSSL but then I checked my phpinfo() and I have the following
Configure Command has at the end '--with-openssl'
And the OpenSSL section is as follows
openssl OpenSSL support enabled OpenSSL Version OpenSSL 0.9.7i 14 Oct 2005
I'm at a loss of what to do next except to try a different Email class like swiftmailer or something, but I would much rather use flourish, the API is excellent and having just one library used consistently is easier to manage.
Thanks for any help.