We've an application which is hosted on Amazon EC2. It is connecting to the gmail servers for sending the email to the registered users using Java Mail API. It sends emails using the gmail servers using the email address support@domainname.com(not gmail.com email address). 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":
You haven't added SPF domain records. The SPF records are used to set from which IP addresses you will be sending emails. Every other IP address will be considered as spam. ( http://www.openspf.org/ )
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.