Thanks for your message!'; //Set the form flag to no display (cheap way!) $flags = 'style="display:none;"'; //Deal with the email $to = 'ryan2171@hotmail.co.uk'; $subject = 'Newsletter'; $email = strip_tags($_POST['email']); $boundary =md5(date('r', time())); $headers = "From: joeeastonlandscapes@gmail.com\r\nReply-To: joeeastonlandscapes@gmail.com"; $headers .= "\r\nMIME-Version: 1.0\r\nContent-Type: multipart/mixed; boundary=\"_1_$boundary\""; $message="This is a multi-part message in MIME format. --_1_$boundary Content-Type: multipart/alternative; boundary=\"_2_$boundary\" --_2_$boundary Content-Type: text/plain; charset=\"iso-8859-1\" Content-Transfer-Encoding: 7bit Email to add to mail list: $email --_2_$boundary-- --_1_$boundary --_1_$boundary--"; mail($to, $subject, $message, $headers); //sending the back to there page //$page = $_POST["page"]; } else { header('Location: /'); }; ?>

Great! You have signed up to our newsletter.

We can now send you updated.