PHPMailer, fsockopen(), possible Apache issue?
Posted
by danp
on Stack Overflow
See other posts from Stack Overflow
or by danp
Published on 2010-04-09T09:01:31Z
Indexed on
2010/04/09
9:23 UTC
Read the original article
Hit count: 359
I'm using PHPMailer to send out site contacts.
In development, the script works perfectly with the GMail service over smtp. However, in production, inside the client's DMZ, it appears unable to connect to the SMTP service they have there. I have connected to the same service using telnet to port 25, so I know for sure it exists and is available to the server.
Are there any circumstances where php might not be able to open a socket connection (fsockopen)...? The php extension openssl is loaded and ok.
The error is "Unable to connect to SMTP service".
Thanks!
© Stack Overflow or respective owner