Tag: mcafee

如何通过从我的工作站发送邮件使McAfee变得酷炫?

我正在为服务器开发一个应用程序,它必须偶尔发送邮件以通知用户。 MailMessage mm = new MailMessage(); mm.To.Add(“me@domain.net”); mm.From = new MailAddress(“you@domain.net”); mm.Subject = “J/K”; mm.Priority = MailPriority.Normal; mm.IsBodyHtml = false; mm.Body = “Greetings and salutations”; SmtpClient client = new SmtpClient(“host.address.lcl”); client.Send(mm); 如果我将应用程序放在实际的服务器上它可以正常工作,但在我的工作站上,根据我访问代码的方式,它会无声地失败或抛出exception。 无论哪种情况,都会生成McLogEvent: Blocked by port blocking rule (Anti-virus Standard Protection:Prevent mass mailing worms from sending mail). ……并且例外说: System.Net.Mail.SmtpException: Failure sending mail. —> System.Net.WebException: Unable […]