topical media & game development
basic-php-11-sendconf.php / php
<html>
<head>
<title>HTML Mail Sent!</title>
</head>
<body>
<?php
_POST["to"];
_POST["toname"];
_POST["cc"];
_POST["bcc"];
_POST["from"];
_POST["fromname"];
_POST["subject"];
if (!empty(_POST["postcard"] as postcard = messagebody = boundary = "==MP_Bound_xyccr948x==";
headers .= "Content-type: multipart/alternative; boundary=\"headers .= "From: no-reply@postcardorama.com\r\n";
html_msg .= "<table width=\"500\" border=0 cellpadding=\"4\">";
toname!";
html_msg .= "html_msg .= "</td></tr><tr><td align=\"center\">";
postcard\" border=\"0\">";
html_msg .= html_msg .= "</td></tr></table></center>";
msec = (int) msgid = md5(time() . sql = "INSERT INTO confirm (validator, to_email, toname, from_email, " .
"fromname, bcc_email, cc_email, subject, postcard, message) " .
"VALUES ('to', 'from', " .
"'bcc', 'subject', 'messagebody')";
sql, confirmsubject = "Please Confirm your postcard";
fromname . ",\n\n";
confirmmessage .= confirmmessage .= "<a href=\"http://localhost/bp5am/ch11/confirm.php" .
"?id=textconfirm = "Hello " . textconfirm .= "Please visit the following URL to confirm your " .
"postcard:\n\n";
msgid";
message .= "--message .= "Content-type: text/html; charset=iso-8859-1\n";
message .= message .= "--message .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n";
message .= message .= "--mailsent = mail(confirmsubject, headers);
if (from.<br>";
echo "Open your e-mail and click on the link to confirm that you would
like to send this postcard to subject<br>";
echo "<b>Message:</b><br>";
echo
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.