Re: Debugging mail()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Todd Cary wrote:
I have the following code in my script and no errors are created, but I do not get any emails. It works on other servers.

Are there some logs I can check to figure out why an email is not being sent/received?

Todd

Whoops...forgot the code:

if (mail("todd@xxxxxxxxxxxxxxxxxx", "Test email", $body, "From:webmaster@xxxxxxxxxxxxxxxxxx")) {
 $msg = "Email has been sent to " . $req_email;
 $req_email = "";
} else {
  $msg = "Cannot send email";
}

And I believe the problem is that the required is being used by another server.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux