RE: [PHP] Dreaded Return-Path and mail()

From: Date: Tue, 07 Jan 2003 00:37:37 +0000
Subject: RE: [PHP] Dreaded Return-Path and mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-130519@lists.php.net to get a copy of this message
Hmm... I would expect that your sendmail.cf (if you are using sendmail) hasn't got your webserver (running as eg www or apache etc) in it's trusted users file / listing. HiTCHO has Spoken! Timothy Hitchens (HiTCHO) tim@hitcho.com.au > -----Original Message----- > From: David T-G [mailto:davidtg-php@justpickone.org] > Sent: Tuesday, 7 January 2003 10:34 AM > To: PHP General list > Cc: Monty > Subject: Re: [PHP] Dreaded Return-Path and mail() > > > Monty -- > > ...and then Monty said... > % > % Okay, I've read just about everything on the Internet about > how the change % the Return-Path header in an e-mail sent > using mail(), but, I STILL can't % get it to work. All e-mail > sent via PHP says Return-Path: nobody@domain.com % and > Received: (from nobody@localhost). > > How interesting. > > What do you get if you put > > $to = "monty3@hotmail.com" ; > $subj = "here is a subject" ; > $body = "this is the message body" ; > $hdrs = "From: monty3@hotmail.com\r\nReturn-Path: > monty3@hotmail.com" ; > > mail($to,$subj,$body,$hdrs) ; > > in a php script and execute it? If it doesn't work, what do > the mail server lots on your web server say? I just tested > this code on my box and it worked, so if you have problems > then you can figure it's your mail setup and not your code. > If it works, expand from there in small steps :-) > > > HTH & HAND > > :-D > -- > David T-G * There is too much animal courage in > (play) davidtg@justpickone.org * society and not sufficient > moral courage. > (work) davidtgwork@justpickone.org -- Mary Baker Eddy, > "Science and Health" > http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf > Qrprapl Npg! > >

« previous php.general (#130519) next »