邮件.php
<?php
function goback()
{
header("refresh:5; url=index.php");
exit;
}
if(isset($_POST['submit'])){
$name = $_POST['name'];
$comment = $_POST['comment'];
$mob = $_POST['mob'];
$email= $_POST['email'];
$to ='xxx@company.net';
$subject= 'Request callback form';
$message ="Name: ".$name."\n".
"Comment: ".$comment."\n".
"Mobile: ".$mob."\n".
"E-mail: ".$email;
if(mail($to, $subject, $message)){
echo "Sent successfully! Thank you. ".$name.
", We will contact you soon!";
goback();
}
else
{
echo "something went wrong";
}
}
?>
如果我将电子邮件 ID 设置为xxx@company.net或xxx@gmail.com ,我会从该表单收到电子邮件,但如果我将其设置为xxx@company.com ,那么我没有收到任何来自联系我们表单的邮件...
谁能帮忙解决这个问题?
Outlook 中所需的任何设置,例如 gmail,我们必须将其设置为“安全性较低”?