";
$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);
$conn = mysql_connect("yourserver", "joeuser", "yourpass");
mysql_select_db("postcard", $conn);
$sql = "INSERT INTO confirm (validator, to_e-mail, toname, from_e-mail, fromname,
bcc_e-mail, cc_e-mail, 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 .= "