Email question

Trying to get php email working having problems. Can anyone see any problems with code. Any help is greatly appreciated. Thanks in advance.

//begin creation of the email
$headers = "MIME-Version: 1.0
";
$headers .= “Content-type: text/html; charset=iso-8859-1
“;
$headers .= “From: example@example.com”;
$message1 = “<html><body>
$messagecontent
</html></body>”;
// mail(”$_SESSION[e_mail], test@example.com”, “Thank you for Signing-Up with Example”, $message1, $headers);

// mail("$_SESSION[e_mail]", “Thank you for Signing-up with Example”, “$message1”, "From: signup@example.com Return-Path: d@example.com BCC: example@example.com ");

mail("$e_mail, signup@example.com", “Thank you for Signing-Up with Example”, $message1, $headers);

header(‘Location: signup4.php’);

?>
<!–END PHP CODE–>

Well, you’ve commented out the mail function…

What happens when you send the mail? Any errors, warnings or notices?

You can always try:

if(mail("$e_mail, signup@example.com", "Thank you for Signing-Up with Example", $message1, $headers)){
  echo "Mail sent";
}else{
  echo "Mail not sent";
}

That will at least tell you if the mail is being accepted for delivery.