Contact Form Submission

Name: {$name}

Email: {$email}

Subject: {$subject}

Message:
{$message}

"; // Try to send the email if (mail($to, $email_subject, $email_body, $headers)) { $message_sent = true; } else { $error_message = "There was a problem sending your message. Please try again."; } } } ?>

Get In Touch

Thank you for your message. It has been sent.

"; } elseif ($error_message) { echo "

$error_message

"; } ?>