Re: PHP e-mailing question
| From: | Richard | Date: | Tue, 03 Feb 2015 10:28:03 +0000 |
| Subject: | Re: PHP e-mailing question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324379@lists.php.net to get a copy of this message | ||
------------ Original Message ------------
> Date: Tuesday, February 03, 2015 13:16:02 +0200
> From: Danny <mynixmail@gmail.com>
> To: php-general@lists.php.net
> Subject: [PHP] PHP e-mailing question
>
> Hi,
>
> I have a script sending mail to users which works fine. However,
> php sends the mail as user "www-data" (Debian). Is there a way I
> can change this?
>
> Thank You
>
> Danny
You need to set the "-f" flag.
See "example 3" at:
<http://php.net/manual/en/function.mail.php>
- Richard