HarryVincent
Programmer
I have a page setup that sends mail using the php mail() function. However, I don't have access to php.ini and would like to override the "FROM" setting that users see when they get the e-mail.
Currently, when someone gets an e-mail from my site the FROM header reads "CGI Mailer" Is there a way to use "sendmail_from" within my php code to change this?
I tried adding this before calling mail():
$headers = "From: myemail@mydomain.com\nReply-To: myemail@mydomain.com"
But that didn't have any effect on the resulting e-mail. It would be nice to have a real reply-to address show up -- any way to do it?
Currently, when someone gets an e-mail from my site the FROM header reads "CGI Mailer" Is there a way to use "sendmail_from" within my php code to change this?
I tried adding this before calling mail():
$headers = "From: myemail@mydomain.com\nReply-To: myemail@mydomain.com"
But that didn't have any effect on the resulting e-mail. It would be nice to have a real reply-to address show up -- any way to do it?