sblake161189 Posted February 2, 2011 Share Posted February 2, 2011 Hi Guys, I have a PHP mail script and I have extracted a bits here... $email = mysql_real_escape_string($_POST['email']); $mailheader = "From: $email" . "\r\n"; // Always CC Email to HQ $mailheader = "Cc: contact@example.com" . "\r\n"; // Customers copy $mailheader .= "BCc: $email" . "\r\n"; $mailheader .= 'MIME-Version: 1.0' . "\r\n"; $mailheader .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; and another bit mail($to, $subject, $body, $mailheader); However when the email comes through it doesn't display the email address entered in the from field. Why? Ive done others and its worked, cant find out why.. Cheers, S Quote Link to comment Share on other sites More sharing options...
sblake161189 Posted February 2, 2011 Author Share Posted February 2, 2011 As soon as I posted it I worked it out - always happens lol $mailheader .= "Cc: contact@theacidfrog.com" . "\r\n"; I missed the dot before the equals. Thanks anyways. lol Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.