Jump to content

From $email


sblake161189

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.