Re: Re: Mail problem
| From: | Erwin | Date: | Fri, 30 Aug 2002 11:45:13 +0000 |
| Subject: | Re: Re: Mail problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114639@lists.php.net to get a copy of this message | ||
>> The sendmail_from variable in the php.ini on my server is set to
>> me@localhost.com. The same variable on my isp's ini file is set to
>> 'no value'. Would this stop my emails from being sent and if so can
>> I change this value from within my script or would it have to be
>> directly amended in the php.ini file?
I don't think this would stop emails from being sent.
There are two ways to change the From header:
- Use the function ini_set("sendmail_from", "<email address>" );
- Use "From: <email address>" as the fourth argument to your mail call
Grtz Erwin