Re: php mail()

From: Date: Tue, 15 Oct 2002 12:33:01 +0000
Subject: Re: php mail()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-120006@lists.php.net to get a copy of this message
Ühel ilusal päeval [14-10-2002 22:46] kirjutas John W. Holmes: > > 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. > > The users probably need to set a FROM header in their mail > > $header = "FROM: email@domain.com"; > > mail($to,$subject,$body,$header); > > Then the bounce should go to that address. There are two different headers -- the "From:" header and the "From" header. Bounces go to the address specified in the "From" header. I believe you must reconfigure your MTA to send different From header, i don't think this can be set within PHP. Cheers, Juhan

« previous php.general (#120006) next »