[KLUG Members] Mail from PHP
Matt Scott
members@kalamazoolinux.org
Sun, 18 Apr 2004 15:50:44 -0400
On Sun, 2004-04-18 at 14:04, Robert G. Brown wrote:
> 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?
>
> Regards,
> ---> RGB <---
When I was having a similar problem with mail being sent from phpbb I
added a line something like this to the sendmail generics file in
/etc/mail.
apache phpbb@domain.com
That did the job quite nicely.
Matt