Forum Moderators: coopster
<script language="php">
$item1 = "A brown tree stump.";
$item2 = "Apples.";
$item3 = "Just a wagon.";
$recipient = "Receiver@Address.com";
$subject = "Test HTML email";
$sender = "Sender@Address.com";
$mailheader = "From: $sender\r\n";
$mailheader .= "MIME-Version: 1.0\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
$message = "<html>\r\n";
$message .= "<head>\r\n<title>$subject</title>\r\n</head>\r\n<body>\r\n";
$message .= "<font face=\"Courier New\" size=\"2\">";
$message .= "The brown item is: $item1\r\n";
$message .= "The two red items are: $item2\r\n";
$message .= "The third item is: $item3\r\n";
$message .= "</font>\r\n</body>\r\n";
$message .= "</html>\r\n";
mail($recipient, $subject, $message, $mailheader) or die ("Failure");
</script>
I RECEIVE THE FOLLOWING EMAIL BODY:
Content-type: text/html; charset=iso-8859-1
<html>
<head>
<title>Test HTML email</title>
</head>
<body>
<font face="Courier New" size="2">The brown item is: A brown tree stump.
The two red items are: Apples.
The third item is: Just a wagon.
</font>
</body>
</html>
To: IT-Staff From: File_Submission_Utility Message-Id: <20040128035030.************@sauron.xxxxxxxx.qld.edu.au> Date: Wed, 28 Jan 2004 13:50:30 +1000 (EST) Return-Path: File_Submission_Utility@sauron.xxxxxxxx.qld.edu.au X-OriginalArrivalTime: 28 Jan 2004 03:50:30.0799 (UTC) FILETIME=[DFE5B1F0:01C3E551]
Any ideas on how to keep this stuff out of the message body?