Thanks! Your message has been sent.

'; } else { echo '

Something went wrong, go back and try again!

'; } } else { echo '

You need to fill in all required fields!

'; } } else { echo '

Invalid Email, please provide an correct email.

'; } // Use the script below if you want to use HTML emails instead /* $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $to = 'xxxx@xxxx.com'; // Replace xxxx@xxxx.com with your email address (mandatory!) $subject = 'Hello'; // Choose a custom subject (not mandatory) $body = ''; $body .= 'You have received a message from ' . $name . ' (' . $email . '):'; $body .= '

' . $message . '

'; $body .= ''; $from = "From: Beetle Template"; // Replace "Beetle Template" with your site name (not mandatory) $headers = "From:" . $from . "\r\n"; $headers .= "Reply-To: " . $email . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $headers .= "X-Mailer: PHP/" . phpversion(); if (filter_var($email, FILTER_VALIDATE_EMAIL)) { if ($name != '' && $email != '' && $message != '') { if (mail ($to, $subject, $body, $headers)) { echo '

Thanks! Your message has been sent.

'; } else { echo '

Something went wrong, go back and try again!

'; } } else { echo '

You need to fill in all required fields!

'; } } else { echo '

Invalid Email, please provide an correct email.

'; } */ ?>