PHP Classes

$email_message->localhost= ERROR

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  How Can PHP Send Emai...  >  All threads  >  $email_message->localhost= ERROR  >  (Un) Subscribe thread alerts  
Subject:$email_message->localhost= ERROR
Summary:Error if working online on a domain: which ADDRESS is to use?
Messages:2
Author:Alessio Dev
Date:2009-04-29 16:17:11
Update:2009-04-29 18:27:39
 

  1. $email_message->localhost= ERROR   Reply   Report abuse  
Picture of Alessio Dev 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

  2. Re: $email_message->localhost= ERROR   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-04-29 18:27:39 - In reply to message 1 from Alessio Dev
Please do not post the same message in different forums. This was already replied here.

phpclasses.org/discuss/blog/Package ...