简体   繁体   English

电子邮件进入垃圾邮件而不是收件箱

[英]Email goes to spam instead of inbox

We have a domain name "www.mycloudcctv.com" at godaddy.com and we have created a sub domain cam.mycloudcctv.com which points to 212.78.237.157 We have an application running on third party server (212.78.237.157). 我们在godaddy.com上拥有一个域名“ www.mycloudcctv.com”,并且已经创建了一个指向212.78.237.157的子域cam.mycloudcctv.com。我们在第三方服务器上运行了一个应用程序(212.78.237.157)。 This application wants to send an email on our behalf using the email address “alerts@ mycloudcctv.com ". Following code snippet (ASP.NET) is being used to send the email from (212.78.237.157) 此应用程序希望使用电子邮件地址“ alerts @ mycloudcctv.com”代表我们发送电子邮件。正在使用以下代码段(ASP.NET)从(212.78.237.157)发送电子邮件

var mailClient = new SmtpClient();

    mailClient.Credentials = new NetworkCredential { UserName = "alerts@mycloudcctv.com", Password = "xyz" };

    mailClient.Port = 25;
    mailClient.Host = "smtpout.secureserver.net"; 
    mailClient.EnableSsl = false;

    var mail = new MailMessage("alerts@mycloudcctv.com", "azharmalik3@hotmail.com", "Test Smtp server", "Testing mycloudcctv server") { IsBodyHtml = true };
    //Now Send the message
    mailClient.Send(mail);

Everything works fine and emails are being sent however they end up in SPAM/JUNK folders of gmail/hotmail/yahoo. 一切正常,并且正在发送电子邮件,但是它们最终落入gmail / hotmail / yahoo的SPAM / JUNK文件夹中。 Could you please provide us necessary information so that our emails go to inbox instead of spam folders? 您能否提供给我们必要的信息,以便我们的电子邮件进入收件箱而不是垃圾邮件文件夹?

this is a BIG question with lots of complex issues, but it really boils down to three main areas: 这是一个涉及许多复杂问题的大问题,但实际上可以归结为三个主要方面:

  1. Does the email come from a server which has be delegated the authority to deliver emails for the specified domain? 电子邮件是否来自已被授权为指定域传递电子邮件的服务器?

  2. Is the content of the email just hyperlinks and does it contain text which would trigger spam assassin to mark as spam. 电子邮件的内容是否只是超链接,并且是否包含会触发垃圾邮件刺客以将其标记为垃圾邮件的文本。

  3. Is your server blacklisted for spam 您的服务器是否被列入垃圾邮件黑名单?

For point 1 look into how to setup SPF records for send authority. 对于第1点,研究如何为发送权限设置SPF记录。 http://www.mydigitallife.info/how-to-set-up-and-create-sender-policy-framework-spf-domain-dns-txt-record-with-wizard/ http://www.mydigitallife.info/how-to-set-up-and-create-sender-policy-framework-spf-domain-dns-txt-record-with-wizard/

For point 2 get a copy of spam assassin and run your emails through it to see the score. 对于第2点,请获取一份垃圾邮件刺客副本,并通过它发送电子邮件以查看得分。 http://spamassassin.apache.org/ http://spamassassin.apache.org/

For point 3 http://whatismyipaddress.com/blacklist-check 对于第3点http://whatismyipaddress.com/blacklist-check

This is not that easy. 这不是那么容易。 There are fair few things you have to do. 您要做的事情很少。 For example SendGrid has some guidelines: 例如,SendGrid有一些准则:

http://support.sendgrid.com/entries/21194967-deliverability-101 http://support.sendgrid.com/entries/21194967-deliverability-101

I found this blog-posting extremely useful! 我发现这篇博客文章非常有用! Give it a good read, it covers a lot of the points already mentioned here thus far: 给它一个好的阅读,它涵盖了到目前为止这里已经提到的许多要点:

http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html

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

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