View Single Post
  #1  
Old 26th February 2007, 12:52
bwragg bwragg is offline
Member
 
Join Date: Jul 2006
Posts: 58
Thanks: 7
Thanked 3 Times in 2 Posts
Post php mail() sent as apache@server.domain.com

if I do the following in a php page

Code:
if (mail($ADDR,"Testing","This is a test"))
the mail gets sent from apache@servername.domainname.com. I assume this is happneing becuase the httpd server is running as the apache user? Is there any way to stop this so that the email is sent automatically from the domain the page is being run in?

I know you can add the $header parameter to the mail function with a "From:" statement in it, but is there anyother way.

Thanks,

Ben
Reply With Quote
Sponsored Links