PHP Classes

Send Email Failed

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  Send Email Failed  >  (Un) Subscribe thread alerts  
Subject:Send Email Failed
Author:Walker Sousa
Date:2012-05-31 16:33:59
Update:2012-05-31 21:09:28

  1. Send Email Failed   Reply   Report abuse  
Picture of Walker Sousa Walker Sousa - 2012-05-31 16:33:59
Why i can send email for online the same domain connection?

I am using this confs:


$smtp = new smtp_class;

$smtp->host_name = "smtp.******.com";
$smtp->host_port = 587;
$smtp->ssl = 0;

"MIME-Version: 1.0",
"Content-type: text/html; charset=utf-8",
"From: ***@***.***",
"To: ***@***.***",
"Subject: ***",
"Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z")

But I can only send email to the same domain i was configured. Different domains can not I submit, is missing some setting? My server requires login and authentication. How should I set?

  2. Re: Send Email Failed   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-05-31 21:09:28 - In reply to message 1 from Walker Sousa
Yes, usually SMTP servers are configured to only relay messages to different domains if you authenticate with an authorized user. You can do that by setting the variables user and password. Take a look at the test_smtp.php example script.