PHP mail function From header not working

From: Date: Thu, 13 Feb 2003 08:54:02 +0000
Subject: PHP mail function From header not working
Groups: php.general 
Request: Send a blank email to php-general+get-135397@lists.php.net to get a copy of this message
When I try to use a php script, to send an email, the From header is replaced by a senders email address of my provider. Is there any way to make it so my email address shows up in the From header? In the script I used fake addresses, because of client privacy reasons... <? $email = "toaddress@domain.com"; $mailheaders = "From: My Name\n"; $mailheaders .= "Reply-To: myEmail@domain.com\n\n"; $message2 ="MESSAGE GOES HERE"; mail($email,"TITLE",$message2,$mailheaders); ?>

« previous php.general (#135397) next »