I’m trying to send email via my Google apps account and I’m getting the following error:
—-
A PHP Error was encountered
Severity: Warning
Message: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Connection timed out)
Filename: libraries/Email.php
Line Number: 1670
...
...
—-
I’ve updated system/expressionengine/libraries/EE_Email.php to include:
‘smtp_port’ => 465,
‘crlf’ => “\r\n”,
‘newline’ => “\r\n”
...And updated /codeigniter/libraries/Email.php to include:
var $smtp_port = “465”; // SMTP Port
var $newline = “\r\n”; // Default newline. “\r\n” or “\n” (Use “\r\n”
var $crlf = “\r\n”;
...And the SMTP username/password are definitely correct. Is there anything else I can check?
Cheers