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"; <center>"; html_msg .= "<table width=\"500\" border=0 cellpadding=\"4\">"; <tr><td>Greetings, toname!"; </td></tr><tr><td>"; html_msg .= "<br>Enjoy!"; html_msg .= "</td></tr><tr><td align=\"center\">"; <img src=\"postcard\" border=\"0\">"; </td></tr><tr><td align=center>"; 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=</a>"; 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 (<br>"; echo "A confirmation e-mail has been sent to from.<br>"; echo "Open your e-mail and click on the link to confirm that you would like to send this postcard to <br><br>"; echo "<b>Subject:</b> subject<br>"; echo "<b>Message:</b><br>"; echo </body> </html>
(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.