php邮件没有发送到outlook.com

时间:2013-09-19 09:40:49

标签: php email outlook outlook.com

我的联系表单没有向outlook.com发送电子邮件 我已经在其他电子邮件帐户上测试过并且运行正常。 我能解决这个问题吗?

我的php代码如下

<?php 
$to = 'xxx@xxx.gr';
$headers = 'Content-type: text/plain; charset=UTF-8' . "\r\n";

if(isset($_POST['fullname'])){

$subject1 = mysql_real_escape_string($_POST['fullname']);
$mail = mysql_real_escape_string($_POST['email']);
$message = mysql_real_escape_string($_POST['message']);
$subject = " $subject1 $mail";


    mail($to, $subject, $message, $headers);





header("location: contact.php");
exit();
}
?>

提前谢谢

0 个答案:

没有答案
相关问题