Attention! You must enter your name.'; $error = "No name specified."; header("Location:./redirect.php?error=$error&caption=:("); exit(); } else if (trim($email) == '') { // echo '
'; $error = "No valid email address."; header("Location:./redirect.php?error=$error&caption=:("); exit(); } else if (!isEmail($email)) { // echo ''; $error = "No valid email address."; header("Location:./redirect.php?error=$error&caption=:("); exit(); } if (trim($comments) == '') { // echo ''; $error = "No message entered."; header("Location:./redirect.php?error=$error&caption=:("); exit(); } if(get_magic_quotes_gpc()) { $comments = stripslashes($comments); } // Configuration option. // Enter the email address that you want to emails to be sent to. // Example $address = "joe.doe@yourdomain.com"; //$address = "example@themeforest.net"; $address = "zino@zinomedia.de"; // Configuration option. // i.e. The standard subject will appear as, "You've been contacted by John Doe." // Example, $e_subject = '$name . ' has contacted you via Your Website.'; $e_subject = 'PokerStarsBot contact: ' . $name; $e_body = "You have been contacted by $name with regards to $subject:" . PHP_EOL . PHP_EOL; $e_content = "\"$comments\"" . PHP_EOL . PHP_EOL; $e_reply = "You can contact $name via email $email."; $msg = wordwrap( $e_body . $e_content . $e_reply, 70 ); $headers = "From: $email" . PHP_EOL; $headers .= "Reply-To: $email" . PHP_EOL; $headers .= "MIME-Version: 1.0" . PHP_EOL; $headers .= "Content-type: text/plain; charset=utf-8" . PHP_EOL; $headers .= "Content-Transfer-Encoding: quoted-printable" . PHP_EOL; if(mail($address, $e_subject, $msg, $headers)) { // Email has sent successfully, echo a success page. // echo '"; $error = "We will process your request asap."; header("Location:./redirect.php?error=$error&caption=Thanks!"); } else { // echo 'ERROR!'; $error = "There was an error sending your message. Please report this."; header("Location:./redirect.php?error=$error&caption=:("); }