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: [email protected]" . "\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 Link to comment https://forums.phpfreaks.com/topic/226476-from-email/ 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: [email protected]" . "\r\n"; I missed the dot before the equals. Thanks anyways. lol Link to comment https://forums.phpfreaks.com/topic/226476-from-email/#findComment-1168969 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.