Federico Posted November 23, 2008 Share Posted November 23, 2008 I'm trying to connect to an SMTP relay with fsockopen and I always get the same error, Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.gmail.com:25 (Connection timed out), despite the SMTP server specified. Has Heliohost closed port 25 ? Thank you Quote Link to comment Share on other sites More sharing options...
kvhc128 Posted November 23, 2008 Share Posted November 23, 2008 Instead of smtp.gmail.com, try using ssl://smtp.gmail.com. Quote Link to comment Share on other sites More sharing options...
Federico Posted November 23, 2008 Author Share Posted November 23, 2008 Instead of smtp.gmail.com, try using ssl://smtp.gmail.com. As I said before, no matter what SMTP server I use, I keep getting the same error: Yahoo!: smtp.mail.yahoo.com.ar Telered: enviar.telered.com.ar Quote Link to comment Share on other sites More sharing options...
Wizard Posted November 23, 2008 Share Posted November 23, 2008 Did you add ssl: before it? Quote Link to comment Share on other sites More sharing options...
Federico Posted November 25, 2008 Author Share Posted November 25, 2008 Did you add ssl: before it? I cannot connect to ANY smtp server. Do you have the same problem? Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.mail.yahoo.com.ar:25 (Connection timed out) in /home/fpetit/public_html/class.smtp.php on line 122 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.