我创建通过电子邮件发送的HTML内容, 但是电子邮件进入垃圾邮件文件夹; 那么如何解决这个问题,请帮帮我。
我读了这个问题,但这对我没有帮助 谢谢您,
<?php
$to1 = 'test@gmail.com, toganeshwagh@gmail.com';
$subject = 'Tester subject.';
// To send HTML mail, the Content-type header must be set
$headers .= "Reply-To: The Sender <sender@sender.com>\r\n";
$headers .= "Return-Path: The Sender <sender@sender.com>\r\n";
$headers .= "From: test@test.in" ."\r\n" .
$headers .= "Organization: Sender Organization\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-Mailer: PHP". phpversion() ."\r\n" ;
?>