first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?
|
||||
$email = $_REQUEST["email"];
|
||||
$to = "dsathemes@gmail.com";
|
||||
if (isset($email)) {
|
||||
$email_subject = "This message was sent via NordEx (Request Form)";
|
||||
$headers = "MIME-Version: 1.0" . "\r\n";
|
||||
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
|
||||
$headers .= "Email: ".$email.">\r\n"."Reply-To: ".$email."\r\n" ;
|
||||
$msg = "Email: $email";
|
||||
|
||||
$mail = mail($to, $email_subject, $msg, $headers);
|
||||
if($mail)
|
||||
{
|
||||
echo 'success';
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
echo 'failed';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user