Re: php mail problem.
| From: | Manuel Lemos | Date: | Tue, 07 May 2002 09:11:41 +0000 |
| Subject: | Re: php mail problem. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19005@lists.php.net to get a copy of this message | ||
Hello,
Darren Stock wrote:
Hi, I cannot get the php mail function to work from a web browser, if I run my script from the linux prompt, containing the mail function, it runs fine, it sends the mail. But If I run it through my browser it doesn't come back with any errors, it just doesn't send the mail. my php.ini file is ok, as it sends the mail from the prompt. Is this a browser or webserver problem? I interrogated my mail server, and it doesn't even receive an email message. im running apache with php on Mandrake 8.2Most likely the Web user does not have an valid mailbox in the server machine. You need to set the envelop sender (AKA return-path) to some valid e-mail address mailbox. You need to either call sendmail directly with the -f switch or send the message to a SMTP server. You may want to try these classes that do that for you: http://www.phpclasses.org/browse.html/package/9.html http://www.phpclasses.org/browse.html/package/14.html -- Regards, Manuel Lemos