Re: Debugging mail()
| From: | Todd Cary | Date: | Thu, 28 Jul 2005 22:33:43 +0000 |
| Subject: | Re: Debugging mail() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-219565@lists.php.net to get a copy of this message | ||
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? ToddWhoops...forgot the code: if (mail("todd@aristesoftware.com", "Test email", $body, "From:webmaster@aristesoftware.com")) { $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.