Re: "sendmail_from" not set in php.ini or custom "From:" header missing
| From: | Justin Patrin | Date: | Sat, 17 Jul 2004 06:44:02 +0000 |
| Subject: | Re: "sendmail_from" not set in php.ini or custom "From:" header missing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190817@lists.php.net to get a copy of this message | ||
On Sat, 17 Jul 2004 12:16:25 +0800, Wudi <wudicgi@seoul.com> wrote:
> Script:
> <?php
> mail('wudicgi@hotmail.com', 'Subject', 'Message', "From:
> wudicgi@seoul.com");
> ?>
>
> Result:
> Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom
> "From:" header missing in D:\ApacheData\htdocs\downloader\mail.php on line 2
>
> Why does the mail() not work?
> How can I send a e-mail without SMTP?
No idea why it doesn't like your From header. Try setting
sendmail_from in the php.ini. You could also try a mailing library,
such as:
http://pear.php.net/package/Mail
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--