Hi ClarkF1,
That got me close (although, I had to add a few semi-colons [;] to the ends of your headers, but I got it).
I am now getting an email with 2 HTML files attached, which is the message variable?
Here is my (and yours) code.
$header = "From: info@intheclassroom.org\r\n";
$header .= "Reply-To: -finfo@intheclassroom.org\r\n";
$header .= "MIME-Version: 1.0 \r\n";
$header .= "Content-type: html; charset=iso-8859-1\r\n";
$header .= "From: ".$StudentsName;
$subject = "Is America #One? Online Student Test Results from ".$StudentsName;
$to = $TeachersEmail;
$message = "\n"
. "This email is to inform you that " . $StudentsName . ", has received a score of " . $Score . "% on the ". $Subject . " test.\n\n"
. "Date of test: $DisplayDate\n"
. "Time: $Time\n\n"
. "Sincerely,\n"
. "In The Classroom Media\n"
. $OurEmailAddress;
mail($to, $subject, $message, $header);
And here is the contents of the Attachments,.
This email is to inform you that Don, has received a score of 33% on the Is America #One? test.
Date of test: 03-22-2006
Time: 7:56 AM
Sincerely,
In The Classroom Media
info@intheclassroom.org
Interesting, but I noticed that the email address in the attachements is still not a hyperlink (even though it does appear to be on this forum).
Getting close, any tweaks?
Thanks,
Don