简体   繁体   English

电子邮件发送到Gmail帐户的垃圾邮件

[英]email sends to spam of gmail account

I have set automatically to send email to users from my website. 我已设置为自动从我的网站向用户发送电子邮件。 but this email will place to spam of users with gmail accounts.However it is working fine with yahoo or hotmail accounts. 但这封电子邮件将放置到使用gmail帐户的用户的垃圾邮件中。但是,它对于yahoo或hotmail帐户仍然可以正常工作。 How should I solve this? 我该如何解决?

$to = "$Email";
$subject = "Greeting";
$message = 'message here';
$from = "sender@example.com";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= "From: sender@example.com" . "\r\n" .
  "Reply-To: sender@example.com" . "\r\n";            

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

Since your headers appear to be correct, it's probably keying on something within the message. 由于标题似乎是正确的,因此可能是在邮件中键入了某些内容。 One of the things that SpamAssassin (no idea if this is what Gmail uses) keys on is a very short message like the above containing a hyperlink or graphic, so you may benefit by actually making your message a little longer. SpamAssassin(不知道这是否是Gmail使用的)上键入的一件事是一条非常短的消息,例如上面包含超链接或图形的消息,因此实际上使消息更长一点可能会有所帮助。 One of the ways to find out is to send it to your own gmail account and when it appears in your spam folder, examine the headers there for any added spam information. 找出其中一种方法是将其发送到您自己的gmail帐户,并在其出现在垃圾邮件文件夹中时,检查其中的标头以查找任何添加的垃圾邮件信息。 It may contain clues as to what spam engine Gmail is using or what rules your message is breaking. 它可能包含有关Gmail使用的垃圾邮件引擎或您的邮件违反哪些规则的线索。

Please have a look here: 请在这里看看:

Spam sent to Contacts - Message Delivery 垃圾邮件发送给联系人-邮件传递

Hope this helps! 希望这可以帮助!

它应该是smtp配置电子邮件,网站信息的电子邮件ID应该不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM