------------ Original Message ------------ > Date: Tuesday, February 03, 2015 13:16:02 +0200 > From: Danny <mynixmail@xxxxxxxxx> > To: php-general@xxxxxxxxxxxxx > Subject: 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php