OK, here goes...

   $email is from a form, sets to [EMAIL PROTECTED]
        
   mail("[EMAIL PROTECTED]","Subscribe","",
        "From: $email\n");

this is what I get from the subscription request from ezmlm:

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Delivered-To: responder for [EMAIL PROTECTED]
Received: (qmail 32636 invoked from network); 28 Jul 2000 03:00:10 -0000
Received: from admin.f-tech.net (208.149.160.30)
  by mail.f-tech.net with SMTP; 28 Jul 2000 03:00:10 -0000

And when it initailly went out, the envelope says root sent it:

Jul 27 22:43:44 admin qmail: 964752224.680032 new msg 85197
Jul 27 22:43:44 admin qmail: 964752224.680211 info msg 85197: bytes 253
from <[EMAIL PROTECTED]> qp 25427 uid 515
Jul 27 22:43:44 admin qmail: 964752224.688182 starting delivery 5864: msg
85197 to remote [EMAIL PROTECTED]
Jul 27 22:43:44 admin qmail: 964752224.688317 status: local 0/10 remote
1/20
Jul 27 22:43:44 admin qmail: 964752224.918474 delivery 5864: success:
208.149.160.16_accepted_message./Remote_host_said:_250_ok_964753210_qp_32636/
Jul 27 22:43:44 admin qmail: 964752224.918615 status: local 0/10 remote
0/20
Jul 27 22:43:44 admin qmail: 964752224.918657 end msg 85197

 
web server is not running as root.

Any ideas?

Paul Farber
Farber Technology
[EMAIL PROTECTED]
Ph  570-628-5303
Fax 570-628-5545

On Fri, 28 Jul 2000, David Harrison wrote:

> In your PHP mail call you can just go: 
> 
>   mail("[EMAIL PROTECTED]", "Subject", "Header", "From:
> [EMAIL PROTECTED]\n");
> 
> This will add a From: header into the email itself. You can add other
> headers as necessary in the PHP call. 
> 
> Not really the solution to your specific question but should at least allow
> you to implement something to get it working. 
> 
> Regards, 
> 
> --david
> 
> > -----Original Message-----
> > From: Paul Farber [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 28, 2000 12:27 PM
> > To: [EMAIL PROTECTED]
> > Subject: using qmail-inject or /var/qmail/bin/sendmail -t and PHP
> > 
> > 
> > Hello all
> > 
> > I'm trying to use the built in mail function in PHP4.0.1p2 (which is
> > expecting sendmail, I have the environment set to use
> > /var/qmail/bin/sendmail -t).
> > 
> > I need to set the Reply-To: with a valid e-mail address, yet 
> > the e-mail is
> > using root as the reply to.
> > 
> > How do I get /var/qmail/bin/sendmail to take a Reply-To: 
> > header without
> > environment variables?
> > 
> > Thanks
> > 
> > Paul Farber
> > Farber Technology
> > [EMAIL PROTECTED]
> > Ph  570-628-5303
> > Fax 570-628-5545
> > 
> 

Reply via email to