Alessio Dev - 2009-04-29 15:58:03
Hi, i was trying this class on loacalhost and it works but if i put the class on a domain, it doesn't anymore. I'm pretty sure that my error is calling $email_message->localhost= with the wrong parameter. This is the message i got:
Errore: could not connect to the host "smtp.gmail.com": Connection timed out
I've been trying with localhost (silly), $_SERVER['SERVER_ADDR'] (same error message), $_SERVER['HTTP_HOST'] (still the same error). All is still working on localhost with: $email_message->localhost="localhost"
If someone knows the answer to this problem, please POST it! Thanks to all