Welcome Guest, Not a member yet? Register   Sign In
Email SMTP to GMAIL
#1

[eluser]chuckleberry13[/eluser]
I'm trying to connect to my gmail account to send out an smtp email and can't seem to get it working.

I'm getting the following error back. Anybody have any ideas?
Code:
<p>Severity: Warning</p>
<p>Message:  fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to
ssl://smtp.googlemail.com:465 (Connection timed out)</p>
<p>Filename: libraries/Email.php</p>
<p>Line Number: 1564</p>

The thing that puzzles me is I have two different sites on the same host. And one will send out the emails fine with the exact same code and settings, but the other won't.
#2

[eluser]James Burton[/eluser]
With the connection timed out error it's most likely an issue with gmails servers.

http://php.bubble.ro/php-warning-fsockop...timed-out/
Smile
#3

[eluser]chuckleberry13[/eluser]
Hmm...guess I'll just have to use mail or sendmail then.
#4

[eluser]James Burton[/eluser]
I'd think it'd correct itself soon enough, I've occasionally had trouble with the smtp servers but they don't last long.

If not I'd contact your host, if it works on your other site, if their hosted on different servers it could be an issue with the server.




Theme © iAndrew 2016 - Forum software by © MyBB