浏览代码

Removed old PHP mailer

master
Marcel Haazen 6 年前
父节点
当前提交
a280bb67b7
共有 1 个文件被更改,包括 0 次插入37 次删除
  1. +0
    -37
      contactengine.php

+ 0
- 37
contactengine.php 查看文件

@ -1,37 +0,0 @@
<?php
$EmailTo = "marcel@haazen.xyz";
$Name = Trim(stripslashes($_POST['Name']));
$Subject = Trim(stripslashes($_POST['Subject']));
$Email = Trim(stripslashes($_POST['Email']));
$Message = Trim(stripslashes($_POST['Message']));
// validation
if (empty($_POST['Email']) || empty($_POST['Subject']) || empty($_POST['Message']) || empty($_POST['Name'])) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=contact\">";
exit;
}
// prepare email body text
$Body = "";
$Body .= "Name: ";
$Body .= $Name;
$Body .= "\n";
$Body .= "Email: ";
$Body .= $Email;
$Body .= "\n";
$Body .= "Message: ";
$Body .= $Message;
$Body .= "\n";
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$Email>");
// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=contact\">";
}
else{
print "error";
}
?>

正在加载...
取消
保存