我正在收到垃圾郵件文件夾中發送給我們的郵件。我已將我們的電子郵件服務轉移到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 –