UK Second Hand Boats List

" ; $headers .= "From: "; $headers .= $message .=$HTTP_POST_VARS['Vendor']; $headers .= " <"; $headers .= $HTTP_POST_VARS['Email']; $headers .= ">\n"; $headers .= "X-Mailer: PHP\n"; // mailer $headers .= "Return-Path: \n"; // Return path for errors $headers .= "cc:"; $headers .= $HTTP_POST_VARS['Email']; /* subject */ $subject = "SHCHERUB: Add Boat to List"; $message .="

"; $message .=$HTTP_POST_VARS['SailNo']; $message .= " "; $message .=$HTTP_POST_VARS['BoatName']; $message .= " ( "; $message .=$HTTP_POST_VARS['Design']; $message .= ")

\n"; $message .= "Year built : "; $message .=$HTTP_POST_VARS['YearBuilt']; $message .= "
\n"; $message .= "Construction : "; $message .=$HTTP_POST_VARS['Construction']; $message .= "
\n"; $message .= "Description : "; $message .=$HTTP_POST_VARS['Description']; $message .= "
\n"; $message .= "Contact : "; $message .=$HTTP_POST_VARS['Vendor']; $message .= " "; $message .=$HTTP_POST_VARS['Email']; $message .= "
\n"; $message .= "Telephone : "; $message .=$HTTP_POST_VARS['Phone']; $message .= "
\n"; $message .= "Date Posted : "; $message .= (date ("d M Y")); $message .= "
\n"; $message .= "
\n"; mail($recipient, $subject, $message, $headers); echo "Thank you for the addition to the second hand list.
"; echo "You should (provided you left an email address) get an email with the contents of the message " ; echo "that was sent to the list. Please keep us updated if you sell it.

"; echo "Some Cherubs sell very quickly, but others can take a while, especially the older boats."; echo "I don't usually remove an item until 6 months or so after the original posting or if I no longer can get a reply from the poster's email address.

"; echo "Your message was as follows:-

"; echo $message; echo "

"; } else { if ($HTTP_POST_VARS['PostType'] == "Remove" ) { $recipient .= "Second Hand Cherubs List " ; $headers .= "From: "; $headers .= $message .=$HTTP_POST_VARS['Vendor']; $headers .= " <"; $headers .= $HTTP_POST_VARS['Email']; $headers .= ">\n"; $headers .= "X-Mailer: PHP\n"; // mailer $headers .= "Return-Path: \n"; // Return path for errors $headers .= "cc:"; $headers .= $HTTP_POST_VARS['Email']; $subject = "SHCHERUB: Remove Boat from List"; $message .=$HTTP_POST_VARS['Purchase']; $message .= " "; $message .=$HTTP_POST_VARS['SailNo']; $message .= " "; $message .=$HTTP_POST_VARS['BoatName']; $message .= ". The new owner is "; $message .=$HTTP_POST_VARS['NewOwner']; $message .= ", "; $message .=$HTTP_POST_VARS['NewOwnerContact']; $message .= ".\n"; $message .=$HTTP_POST_VARS['Notifier']; mail($recipient, $subject, $message, $headers); echo "Thank you for the removal notification.
"; echo "You should (provided you left an email address) get an email with the contents of the message " ; echo "that was sent to the list. Please keep us updated if you sell it.

"; echo "Your message was as follows:-

"; echo $recipient; echo $headers; echo $message; echo "

"; } else { /* this hasn't arrived from the form! */ echo "This page is designed to be accessed from a form.
"; echo "There's no point in accessing it directly!

"; } } /* and now mail it */ ?>