php mail() sender? www-data??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
josh22x
Forum Commoner
Posts: 38
Joined: Tue Feb 26, 2008 11:17 am

php mail() sender? www-data??

Post by josh22x »

How do I change my php mai() or server so that the sender from my php mail form does not say www-data@....?

Thanks!
Josh
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: php mail() sender? www-data??

Post by Eran »

You can pass it as a header in the function itself or in the php.ini. See 'additional headers' in the following link - http://www.php.net/function.mail
Post Reply