如何删除错误:邮箱不可用。服务器响应为:5.7.1内容过滤将邮件拒绝为垃圾邮件 [英] how to remove error: Mailbox unavailable. The server response was: 5.7.1 Message rejected as spam by Content Filtering

查看:118
本文介绍了如何删除错误:邮箱不可用。服务器响应为:5.7.1内容过滤将邮件拒绝为垃圾邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我再次遇到一个问题。很多时候我在我的应用程序中使用邮件功能。现在它将收到一个错误:

Hello all,

again i face one issue. Lot of time i am using mail function in my application. now it will get an error as :

Mailbox unavailable. The server response was: 5.7.1 Message rejected as spam by Content Filtering



我的邮件功能代码是


my code for mail function is

dt.OpenCon();
       string str = "SELECT MA_First_Name,MA_Email_Id FROM Master_Applicant WHERE Month(MA_DOB) = Month(CURRENT_TIMESTAMP) AND Day(MA_DOB) = Day(CURRENT_TIMESTAMP)";

       DataSet ds = dt.ExecuteDataSet(str);
       if (ds.Tables[0].Rows.Count > 0)
       {
           ViewState["Name"] = ds.Tables[0].Rows[0]["MA_First_Name"].ToString();
           ViewState["Email"] = ds.Tables[0].Rows[0]["MA_Email_Id"].ToString();

       }

       string name = ViewState["Name"].ToString();
       string email = ViewState["Email"].ToString();

       try
       {
           string ToEmailID = email.ToString();
           string Fromemail = "kgirish@elinktechnology.net";
           string copymail = "weblink@elinktechnology.net";
           string copymailto = "kgirish@elinktechnology.net";
           string tomailcc = "seema@elinktechnology.net";

           System.Net.Mail.MailMessage mess = new System.Net.Mail.MailMessage();
           mess.Subject = "Birthday Mail";
           mess.IsBodyHtml = true;
           mess.Body = "<table style='width:100%; font-family:Arial; color:Black; size:10px; text-align:left'>" +
           "<tr><td style='font-weight:bold'>" +
           "Happy Birthday,<br/><br/>" +
           "</td></tr>" +

           "<tr><td>" +
           "Wish You Many Many Happy Returns of the Day "+ ViewState["Name"].ToString() +" <br/><br />" +
           "</td></tr>" +
           "<p>" +
           "</p>" +
           "<tr><td> <a href='http://www.elinktechnologies.net/elm/'>Appraisal Form<td></tr>" +
           "<tr><td>" +
           "God Bless You..<br/><br/><br />" +
           "</td></tr>" +

           "<tr>" +
           "<td>" +
           "Regards," +
           "</td></tr>" +
           "<tr>" +
           "<td style='font-weight:bold'>" +
           "Elink Management Team" +
           "</td></tr>" +
           "</table>";

           mess.To.Add(ToEmailID);
           if ((copymailto.ToString() != string.Empty) && (copymailto.ToString() != null))
           {
               mess.To.Add(copymailto);
           }
           mess.From = new MailAddress(Fromemail);
           mess.CC.Add(tomailcc);
           if ((tomailcc.ToString() != string.Empty) && (tomailcc.ToString() != null))
           {
               mess.CC.Add(tomailcc);
           41}
           SmtpClient sc = new SmtpClient();
           sc.Host = "180.92.175.6";
           sc.Send(mess);

           ViewState["Email_sent"] = "Y";
           ViewState["Email_reason"] = "N";


       }
       catch(Exception ex)
       {
           ViewState["Email_Sent"] = "N";
           ViewState["Email_Reason"] = ex.Message;
       }
   }

推荐答案

你不能。

错误信息:

You can't.
The error message:
Mailbox unavailable. The server response was: 5.7.1 Message rejected as spam by Content Filtering



意思是:您的邮件看起来像垃圾邮件,不会被接受。



获得它的唯一方法是让你的信息看起来不像垃圾邮件......我们无法帮助你!


Means just that: your message looks like spam and will not be accepted.

The only way to get it through is make your message look less like spam...and we can't help you there!


这篇关于如何删除错误:邮箱不可用。服务器响应为:5.7.1内容过滤将邮件拒绝为垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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