You can add extra info into the appropriate fields like so.

mail("[EMAIL PROTECTED]", "the subject", $message,
     "From: [EMAIL PROTECTED]","[EMAIL PROTECTED]");


However, your local sendmail might restrict this behavoir of changing the
sender identity.  Mine simply complaines about it in the mail logs, but
does change the from information like I wish.

Look here for more details:
http://us2.php.net/manual/en/function.mail.php

On Tue, 10 Jun 2003, Josh Thomas wrote:

>-I know that if you use sendmail to perform your mailings in php that the
>-sender shows up as the user and group for Apache. Now is there a way to make
>-the mail command display a different user in the from field? I know that I
>-could change the user/group for Apache to fix it, but is there a setting in
>-the PHP.conf file to change this. Will I be better off using pop and smtp
>-and just point it to my local box?
>-
>-Thanks
>-Josh Thomas
>-www.kickbackpoints.com
>-

**************************************

John Huggins

[EMAIL PROTECTED]
http://www.phphosts.com/

**************************************


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to