Re: Problem with mail()
| From: | Ashwin Purohit | Date: | Thu, 17 Jun 2004 19:10:29 +0000 |
| Subject: | Re: Problem with mail() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188509@lists.php.net to get a copy of this message | ||
So what do you get as the error message? Does it just return failed?
Also, I think using parentheses with echo statements like yours is
unnecessary.
> Keith Aldridge wrote:
> New to php, can't see the problem with mail().
><?php
> if (mail($to, $subj, $body)) { echo "Successful send"; }
> else { echo "Failed"; }
> ?>
--
Ashwin Purohit