Re: Mail Username
| From: | John S. Huggins | Date: | Tue, 10 Jun 2003 15:51:32 +0000 |
| Subject: | Re: Mail Username | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150932@lists.php.net to get a copy of this message | ||
You can add extra info into the appropriate fields like so.
mail("nobody@example.com", "the subject", $message,
"From: webmaster@yourhostname.com","-fwebmaster@yourhostname.com");
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
jhuggins@va.net
http://www.phphosts.com/
**************************************