You'd have to make the user under which Apache runs a "trusted" user in
Sendmail and then use the -f switch in the additional parameters section
of the mail command.


On Mon, 2002-10-14 at 15:44, Brad Dameron wrote:
> Hey do you guys know how to correct this problem with sending email?
> 
> A custumer uses mail() to send the email and it isn't deliverable. So the
> message bounces. But since the local sendmail sent the email it thus bounces
> to root's mailbox instead of say the replyto address. Anyone know how to
> correct it so that it sends the bounces to the person sending it? This is on
> a virtual host machine with hundreds of domains.
> 
> Thank you,
> 
> ---
> Brad Dameron                                                                  
>Network Account Executive
> TSCNet Inc.                                                                          
> www.tscnet.com
> Silverdale, WA.                                                                      
> 1-888-8TSCNET
> 
> 
> 
> > -----Original Message-----
> > From: John W. Holmes [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, October 14, 2002 12:17 PM
> > To: 'Rodrigo Peres'; 'PHP'
> > Subject: RE: [PHP] php mail()
> >
> >
> > > Hi list,
> > >
> > > I trying to send mail using PHP's mail() function without success. My
> > > email
> > > is rejected because it goes with apache@localhost. I've tried
> > everything
> > > put
> > > a diferent from in header etc.
> > >
> > > Does anyone have a clue
> > >
> > > My system is a RedHAT 7, PHP4.2.3, sendmail
> > >
> > > thank's n advance
> >
> > Probably need to set a FROM header in your mail
> >
> > $header = "FROM: [EMAIL PROTECTED]";
> >
> > mail($to,$subject,$body,$header);
> >
> > Or there is a setting in php.ini that sets this, too. Maybe try that, if
> > you can.
> >
> > ---John Holmes...
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to