
Alessio Dev - 2009-04-29 16:17:11
If i'm running the script on my domain, i got an error:
could not connect to the host "smtp.gmail.com": Connection timed out
On localhost, the script works as it would with the following parameter:
/* This computer address */
$email_message->localhost="localhost";
But online, it doesn't, i tried with $_SERVER['SERVER_ADDR'] (same error message), $_SERVER['HTTP_HOST'] (still the same error) as parameters.
Does anyone know how to fix this?
Thanks