";
$html_msg .= "Greetings, $toname!";
$html_msg .= " |
";
$html_msg .= "$fromname has sent you a postcard today. Enjoy!";
$html_msg .= " |
";
$html_msg .= " ";
$html_msg .= " |
";
$html_msg .= $messagebody . "\n";
$html_msg .= " |
";
$temp = gettimeofday();
$msec = (int) $temp["usec"];
$msgid = md5(time() . $msec);
require('./includes/conn_comic.php');
$sql = "INSERT INTO confirm (validator, to_email, toname, from_email, " .
"fromname, bcc_email, cc_email, subject, postcard, message) " .
"VALUES ('$msgid', '$to', '$toname', '$from', " .
"'$fromname', '$bcc', '$cc', '$subject', '$postcard', '$messagebody')";
$query = mysql_query($sql, $conn) or die(mysql_error());
$confirmsubject = "Please Confirm your postcard";
$confirmmessage = "Hello " . $fromname . ",\n\n";
$confirmmessage .= "Please click on the link below to confirm that " .
"you would like to send this postcard:\n\n";
$confirmmessage .= $html_msg . "\n\n";
$confirmmessage .= "