diff --git a/php/contact.php b/php/contact.php new file mode 100644 index 0000000..5d577b5 --- /dev/null +++ b/php/contact.php @@ -0,0 +1,77 @@ +'; + $errorOutput .= ''; + + $errorOutput .= ''; + $errorOutput .= ''; + + echo $errorOutput; + die(); + } + + + + $name = $_POST['name']; + $email = $_POST['email']; + $message = $_POST['message']; + $from = $email; + $subject = 'Website da QtCon Brasil 2018 - Formulário de Contato'; + + $body = "From: $name\n E-Mail: $email\n Message:\n $message"; + + + //send the email + $result = ''; + if (mail ($to, $subject, $body)) { + $result .= ''; + + echo $result; + die(); + } + + $result = ''; + $result .= ''; + + echo $result; + die(); + + +?> +