[KLUG Members] Mail from PHP

Adam Tauno Williams members@kalamazoolinux.org
Sun, 18 Apr 2004 16:31:25 -0400


> I'm using the php mail() function to send stuff to someone at charter.net, 
> like this...
> mail(someone@charter.net,"Response from the website",$yada_yada,
>       "From: thewebsite@thewebsotedomain.com");
> charter.net rejects it because it's from "apache@localhost.localdomain"
> How can that be changed?

Have you added apache as a trusted user in sendmail (permitted to forge
headers), and made sure he (is apache a he?) isn't set as an expose
(don't masquerate) identity?