Re: PHP e-mailing question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux