I guess you have to change the headers accordingly. (If I got you Correctly) Use something like this: $headers = 'From: Your Custom Name <webmaster@xxxxxxxxxxx>'; mail($to, $subject, $message, $headers); -- Sourced From http://php.net/manual/en/function.mail.php On Tue, Feb 3, 2015 at 5:01 PM, Danny <mynixmail@xxxxxxxxx> wrote: > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Nootan Ghimire http://cafecod.es/ nootan@xxxxxxxxxx nootan.ghimire@xxxxxxxxx