如何阻止Gmail将我的网络应用程序发送的邮件标记为垃圾邮件? [英] How to stop Gmail from marking mails sent by my web app as spam?
问题描述
我有一个简单的网络应用程序,提供每日财务数据。用户订阅,我们每天都会向他们发送一封电子邮件。但是,Gmail会将我们的所有电子邮件标记为垃圾邮件。主要的是,为了避免垃圾邮件引擎将您的邮件分类为垃圾邮件,您应该: 请确保它们不是垃圾邮件(例如,确保只有真正选择邮寄的用户才能邮寄 - 确保您保持选择性审核
但最重要的是:
- 不要将它们从已知发送垃圾邮件的IP地址发送。 共享主机。几乎所有的共享主机提供商都允许发送不符合上述任何一项的邮件。共享主机提供商的中继几乎总是在很多黑名单上。
它只需要在共享主机上安装一个易受攻击的Web应用程序,以便它变成垃圾邮件网关 - 你无法负担。
编辑:哦,是的 - 如果你没有设置信封发件人,你的主机提供商可能会设置一些愚蠢的东西 - 确保你可以将它设置为和From相同: - 这可以确保你的邮件不被视为欺骗邮件。
I have a simple web application that provides daily financial data. Users subscribe, and we send them an email every day. However, Gmail is marking all of our emails as spam. What should we be looking out for?
解决方案Chiefly, to avoid a spam engine classifying your messages as spam you should:
- Make sure they aren't spam (i.e. ensure that only users who have really opted in get mailed - make sure you keep an opt-in audit log)
- Make sure they don't look too much like spam - $$$ MAKE MONEY FAST is not a good subject line
- Ensure that the sender address is not spoofed and does not appear to be spoofed. Use a domain that you are authorised to send from (add valid SPF records if you like)
- Not do anything that looks malware-ish (e.g. HTML emails containing scripts, forms, flash etc)
But by and large the main one is:
- Do not send them from an IP address which is known for sending spam.
The last point means that YOU CANNOT USE SHARED HOSTING. Almost all shared hosting providers allow the sending of mails which don't conform to any of the above. Shared hosting providers' relays are almost always on lots of blacklists.
It only takes one vulnerable web app on your shared hosting for it to turn into a spam gateway - something which you can't afford.
EDIT: Oh yes - if you're not setting the envelope-sender, your hosting provider may have it set to something stupid - ensure that you do set it to the same as From: - this makes sure that your messages aren't seen as spoofed
这篇关于如何阻止Gmail将我的网络应用程序发送的邮件标记为垃圾邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!