-- echo $random_hash; ?>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
echo $textmesg; ?>
-- echo $random_hash; ?>
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
echo $htmlmesg; ?>
-- echo $random_hash; ?>--
//copy current buffer contents into $message variable and delete current output buffer
$message = ob_get_clean();
//send the email
$mail_sent = @mail($to, $subject, $message, $headers);
//mail($to1, $subject, $message, $headers);
//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" (Used in testing)
//echo $mail_sent ? "Mail sent" : "Mail failed";
// Delete the contents of the "guestbook.html" file.
$fp = fopen("/home/httpd/newwichelt/freegraphs/guestbook.html", "w");
fclose($fp);
?>