Re: Mail From option in PHP.ini
| From: | Ivo Fokkema | Date: | Mon, 21 Jul 2003 08:02:21 +0000 |
| Subject: | Re: Mail From option in PHP.ini | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156022@lists.php.net to get a copy of this message | ||
Hi,
Paul is right, you can't change the Return-Path header. On a windows server
you could use the 'sendmail_from' setting in php.ini, but that doesn't work
on Linux/Unix. Also, the -f 5th argument of the mail() function does not
function with safe_mode on in php. It also generates a
X-Authentication-error in the emailheader (for me, at least) and I am told
it can lead to dangerous security problems.
I gave up some time ago to try and fix this problem. When my emails don't
reach the target because visitors don't fill in their correct emailaddress,
I won't receive any delivery errors. I used Reply-To, Error-To and whatever
more, but I couldn't fix it. Maybe something can be added to a later release
of PHP to fix this? I for one would be extremely happy with that.
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP & MySQL programmer
Leiden University Medical Centre
Netherlands
"Brian S. Drexler" <sysadmin@saginawcontrol.com> wrote in message
news:000901c34d3d$4e209d90$686fa2ce@saginawcontrol.com...
> Ok, I want to specify who the mail is coming from by using the
sendmail_path
> option in the PHP.ini. I've added the -fme@mydomain.com to it, but I want
> to be able to dynmaically change me@mydomain.com to you@mydomain.com or
> whatever else. Anyone have any ideas how I can do this? I'm pulling the
> e-mail I'd like to change it to from a MySQL database but can I rewrite
the
> php.ini file on the fly or am I stuck. Any help is greatly appreciated.
> Thanks!
>
> Brian
>