[KLUG Members] Mail from PHP

Richard Harding members@kalamazoolinux.org
Sun, 18 Apr 2004 15:07:48 -0400


I think you need to make sure you add the From line in the header so 
that the email is not from the hostname on you local machine.

Some of the comments in the end of the manual page should help you out.

http://www.php.net/manual/en/function.mail.php

Rick



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 <---
>
>_______________________________________________
>Members mailing list
>Members@kalamazoolinux.org
>
>  
>