简体   繁体   English

使用Java邮件api通过gmail发送的邮件会传递到垃圾邮件。 如何使它们传递到收件箱?

[英]Mails sent through gmail using java mail api are delivered to spam. How to make them delivered to the inbox?

We've an application which is hosted on Amazon EC2. 我们有一个托管在Amazon EC2上的应用程序。 It is connecting to the gmail servers for sending the email to the registered users using Java Mail API. 它正在连接到gmail服务器,以便使用Java Mail API将电子邮件发送给注册用户。 It sends emails using the gmail servers using the email address support@domainname.com(not gmail.com email address). 它使用电子邮件地址support@domainname.com(不是gmail.com电子邮件地址)使用gmail服务器发送电子邮件。 However, recently, the emails are getting delivered to the Spam folder of the users. 但是,最近,电子邮件已传递到用户的“垃圾邮件”文件夹中。 Can you please suggest me how to over come this problem and have the mail delivered to the inbox? 您能建议我如何解决这个问题并将邮件传递到收件箱吗?

There are a couple if reasons why your emails are being delivered to the "Spam folder": 有几种原因可将您的电子邮件发送到“垃圾邮件文件夹”:

  1. You haven't added SPF domain records. 您尚未添加SPF域记录。 The SPF records are used to set from which IP addresses you will be sending emails. SPF记录用于设置将从哪个IP地址发送电子邮件。 Every other IP address will be considered as spam. 其他每个IP地址都将被视为垃圾邮件。 ( http://www.openspf.org/ ) http://www.openspf.org/
  2. You are sending too much emails per hour - if you are sending many emails per hour you may get added in a blacklist. 您每小时发送过多的电子邮件-如果每小时发送大量电子邮件,则可能会被添加到黑名单中。 These blacklists are checked by the most popular email service providers such as gmail, hotmail and so on. 这些黑名单由最受欢迎的电子邮件服务提供商(例如gmail,hotmail等)检查。
  3. Your IP address was blacklisted ( http://www.mxtoolbox.com/blacklists.aspx/ ) 您的IP地址已列入黑名单( http://www.mxtoolbox.com/blacklists.aspx/

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

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