[thelist] Double Emails continued in PHP
Rob Smith
rob.smith at THERMON.com
Thu Jul 17 15:33:42 CDT 2003
<snip>
Can we see some code?
</snip>
Sure. Try this:
<?php
$myname = "My Name";
$myemail = "myemail at address.com";
$contactname = "Evolt Member";
$contactemail = "rob.smith at thermon.com";
$message = "<html><head><title></title>";
$message.= "<meta http-equiv='Content-Type' content='text/html' ";
$message.= " charset=iso-8859-1'></head>";
$message.= "<body bgcolor='#FFFFFF' text='#000000'>";
$message.= "This is a test from a fellow evolter.";
$message.= "</body></html>";
$subject = "Evolt PHP Mail Test";
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers.= "From: ".$myname."<".$myemail.">\r\n";
$headers.= "To: ".$contactname."<".$contactemail.">\r\n";
mail($contactemail, $subject, $message, $headers);
?>
<snip>
If you are receiving two at hotmail and one elsewhere, I would look at your
hotmail account. Are you running filters to move the mail into folders with
hotmail? I've seen outlook "generate" two emails when the filters were setup
improperly.
</snip>
I don't suppose you know what settings I could try?
Thanks!
Rob.Smith
More information about the thelist
mailing list