I've developed a flash form that works with php to do a simple send to a friend or mailing sign up form that would then be emailed to the user inputed information. My issue is that when the user receives the resulting email it will come from an undesired email alias that is not related to my domain. Has anyone experienced this issue? and how could i go about controlling what the "from" field displays?
Thanks in advance!
example of my "send to a friend" php script below being called from flash.
Code: Select all
<?
$msg = "Hey, check out myurl.com.";
$to = "$sender_email";
$subject = "$sender_name has recommended a site for you.\n\n ";
$mailheaders = "Sent from myurl.com \n";
mail($to, $subject, $msg, $mailheaders);
?>