Files
float-www/public/assets/php/requestForm.php
DESKTOP-GBA0BK8\Admin 096a2f3825 first commit
2023-03-18 14:16:08 -04:00

23 lines
487 B
PHP

<?
$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';
}
}
?>