Re: "sendmail_from" not set in php.ini or custom "From:" header missing

From: Date: Sat, 17 Jul 2004 07:00:59 +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-190818@lists.php.net to get a copy of this message
* Thus wrote Wudi: > 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? sendmail_from is required to be filled out. You need to specify in your ini a valid sendmail_from, or use ini_set('sendmail_from', 'avalid@email') before your call your mail() function Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.general (#190818) next »