sc2mmr/contact.php

18 lines
430 B
PHP
Raw Normal View History

2014-07-30 00:49:13 -04:00
<?php
$email_to = 'atomaka@gmail.com';
$name = 'sc2mmr Site';
$email = $_POST['contactemail'];
$subject = 'sc2mmr Feedback';
$message = $_POST['contactcomment'];
$headers = 'From: ' . $email . "\r\n";
$headers .= 'Reply-To: ' . $email . "\r\n";
$headers .= 'X-Mailer: PHP/' . phpversion();
if(mail($email_to, $subject, $message, $headers)) {
echo 'sent';
} else {
echo 'failed';
}
?>