我正在收到垃圾邮件文件夹中发送给我们的邮件。我已将我们的电子邮件服务转移到Google邮件中。在Gmail中标记为垃圾邮件的邮件
<?php
$message = "Our New app";
$to='[email protected]';
$subject="New Mail";
$from = '[email protected]';
$body='Just wanted to ask one thing as we are planning for release date, how long do you think it will take to test the android app?';
$headers = "From: " . strip_tags($from) . "\r\n";
$headers .= "Reply-To: ". strip_tags($from) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
mail($to,$subject,$body,$headers);
?>
我将地址从[email protected]更改为[email protected],但仍将其标记为垃圾邮件。
这里是我的phpinfo。请help.Thanks
使用用一些SMTP设置phpmailer或swiftmailer –