的电子邮件将垃圾邮件文件夹 [英] Email messages going to spam folder

查看:201
本文介绍了的电子邮件将垃圾邮件文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个社区门户网站,其中用户创建他/她的帐户。全成注册后,确认邮件上注册的电子邮件地址发送。

I have created a community portal, in which user creates his/her account. After successfull registration a confirmation mail is send on registered email address.

我用下面的code发送邮件 -

I am using the following code to send the mail -

private void SendMail(string recvr, string recvrName, string verCode, int NewUserID)
{
    try
    {
        string emailID = ConfigurationManager.AppSettings["WebMasterMail"];
        string mailPass = ConfigurationManager.AppSettings["pass"];
        string mailer = ConfigurationManager.AppSettings["mailer"];

        MailMessage msg = new MailMessage();
        MailAddress addrFrom = new MailAddress(emailID, "Panbeli.in.... Bari community portal");
        MailAddress addrTo = new MailAddress(recvr, recvrName);

        msg.To.Add(addrTo);
        msg.From = addrFrom;
        msg.Subject = "You have registered sucessfully on PanBeli.in.";
        msg.Priority = MailPriority.High;
        msg.Body = RegisterMessageBody(recvrName, verCode,NewUserID);
        msg.IsBodyHtml = true;

        SmtpClient smtp = new SmtpClient(mailer);
        smtp.Credentials = new System.Net.NetworkCredential(emailID, mailPass);
        smtp.Send(msg);
    }
    catch (Exception Ex) { }
}

在测试中,我们发现,所有的邮件确认将要垃圾邮件文件夹,而不是收件箱中。

While testing we found that all the confirmation mails are going to SPAM folder instead of Inbox.

这有什么错与code或者是有相关的安全任何东西。

Is there anything wrong with the code or is there anything related to security.

任何人都可以提出解决这个问题。

Can anybody suggest solution to this problem.

感谢您分享您的时间。

推荐答案

这听起来像您的电子邮件过得去SpamAssassin的或类似的标记,所以你只需要专注于改变你的电子邮件足以得不到标记。

It sounds like your email is getting flagged by SpamAssassin or the like, so you just need to focus on changing your email enough to not get flagged.


  • 您内容听起来并不像它有任何理由率高的贝叶斯评分,所以我不认为这就是问题。它不会伤害尝试去除虽然可能触发字。

  • Your content doesn't sound like it has any reason to rate high for the Bayesian score, so I don't think thats the problem. It wouldn't hurt to try removing possible trigger words though.

您的消息被标记为高优先级。你需要这个?这只是增加了成垃圾邮件过滤器评分指标之一。垃圾邮件经常被标记为高优先级,让您的信息将与更多的审查处理。在otherhand,对于一些过滤器标记具有高优先级的消息将意味着更少的监督。

Your message is marked with high priority. Do you need this? This just adds into one of the scoring metrics in a spam filter. Spam is often marked with high priority, so your message will be treated with more scrutiny. On the otherhand, for some filters marking your message with high priority will mean less scrutiny.

IsBodyHTML 标记为真实的,但你只提供了的text / html 。你最少需要包括一个替代视图文本/纯

IsBodyHTML is marked true, but you're only providing text/html. You minimally need to include an alternate view with text/plain.

message.IsBodyHtml = true;
string html = RegisterMessageBodyHtml(recvrName, verCode,NewUserID);
string plain = RegisterMessageBodyPlaintext(recvrName, verCode, NewUserID);
message.AlternateViews.Add(AlternateView.CreateAlternateViewFromString(html, new ContentType("text/html"));
message.AlternateViews.Add(AlternateView.CreateAlternateViewFromString(plain, new ContentType("text/plain"));


  • 请参阅谷歌如何处理你的信息。在Gmail中,打开您发送一封测试邮件,点击旁边的回复按钮downfacing箭头并选择显示原始。你会看到谷歌是如何对待你的消息。寻找类似的报头:

  • See how Google treats your message. In gmail, open a test message that you've sent, click the downfacing arrow next to the reply button, and select "Show Original". You'll see how Google treated your message. Look for headers like:

    Received-SPF: softfail (google.com: domain of transitioning xxx@xxx.org does not designate xx.xx.xx.xx as permitted sender) client-ip=xx.xx.xx.xx;
    Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning xxx@xxx.org does not designate xx.xx.xx.xx as permitted sender) 
    


  • 阅读上的SpamAssassin为设定的默认规则,因为它可能会成为大多数过滤器的规则集的一个很好的参考。如果你能找出为什么遭到举报你的消息,你可以解决它。

  • Read up on the default rule set for SpamAssassin as it will probably be a good reference on the rule sets for most filters. If you can identify why your message is getting flagged, you can fix it.

    这篇关于的电子邮件将垃圾邮件文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆