Re: corect way to use mail() function

From: Date: Tue, 12 Jan 2010 04:51:25 +0000
Subject: Re: corect way to use mail() function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-301010@lists.php.net to get a copy of this message
On Mon, Jan 11, 2010 at 04:17:30PM -0600, LAMP wrote: > Hi, > The company I work for, hosts online events registration applications. > After a registered registered himself for an event he will get a > confirmation email saying he registered successfully. > Currently, in the header part of the mail(), in "From" it says e.g. > orders@computility.com - because the email comes from us not from our > client (e.g. ABC Assoc.). Reply-to goes to us too. > > Now one of our clients (e.g. ABC Assoc.) asks us to put in the "from" > field their email, to looks like the email comes from them. something > like: From: ABC Assoc. <events@abcaccos.org>; > > I refused to do that concerned we are going to be blacklisted for > sending "spam". Because header shows one place and From field says other > email address - spam way of sending emails. > > Am I right or it really doesn't matter "who" sent the email? Since the mail() function doesn't have a parameter for the "From:", how do you force it to be a certain thing in the first place? Paul -- Paul M. Foster

« previous php.general (#301010) next »