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: [EMAIL PROTECTED]
% and Received: (from nobody@localhost).

How interesting.

What do you get if you put

  $to = "[EMAIL PROTECTED]" ;
  $subj = "here is a subject" ;
  $body = "this is the message body" ;
  $hdrs = "From: [EMAIL PROTECTED]\r\nReturn-Path: [EMAIL PROTECTED]" ;

  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) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg91859/pgp00000.pgp
Description: PGP signature

Reply via email to