Feedback\r\n"; $html_msg .= "\r\n"; $html_msg .= "\r\n"; $html_msg .= "\r\n"; $html_msg .= "\r\n"; $html_msg .= "
Name:$name
E-Mail Address:$email
Feedback:$feedback
\r\n"; $html_msg .= "
\r\n"; if($_POST['respond'] == 'on') { $html_msg .= "

The person sending the feedback have indicated that they are happy to receive a response.

\r\n"; } if($_POST['use_for_pub'] == 'on') { $html_msg .= "

The person sending the feedback have indicated that they are happy to for their feedback to be used (anonymously) in your publicity.

\r\n"; } $plain_msg = "This message can only be viewed using a client\nwhich can render HTML messages.\n"; //add From: header $headers = "From: $name <$email>\r\n"; //specify MIME version 1.0 $headers .= "MIME-Version: 1.0\r\n"; //unique boundary $boundary = uniqid("HTMLDEMO"); //tell e-mail client this e-mail contains//alternate versions $headers .= "Content-Type: multipart/alternative" . "; boundary = $boundary\r\n\r\n"; //message to people with clients who don't //understand MIME $headers .= "This is a MIME encoded message.\r\n\r\n"; //plain text version of message $headers .= "--$boundary\r\n" . "Content-Type: text/plain; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $headers .= chunk_split(base64_encode($plain_msg)); //HTML version of message $headers .= "--$boundary\r\n" . "Content-Type: text/html; charset=ISO-8859-1\r\n" . "Content-Transfer-Encoding: base64\r\n\r\n"; $headers .= chunk_split(base64_encode($html_msg)); //send message $result = mail("london@nightline.org.uk", "NL-WEBSITE: Feedback", "", $headers); //$result = mail("sideris@gmail.com", "NL-WEBSITE: Feedback", "", $headers); ?>

Feedback sent

Thank you for your feedback.

Feedback sending failed

An error has occurred, making it impossible to send your feedback. Please email webmaster@nightline.org.uk to let us know about this error.