prevent反病毒软件来阻止C#传出的电子邮件反病毒软件、电子邮件、prevent

2023-09-06 08:17:28 作者:唯独有你

我有与正在运行时捕获这种情况发生的所有错误的静态类的应用程序(如果这样),当过程完成后,它会发出有错误的列表中的邮件,所以我或任何其他开发人员可以解决这些错误。

I have an application with a static class that is capturing all errors that happens during the runtime (if its the case) and when process is done, it sends out an email with the list of errors so I or any other developers can address those errors.

但我的问题是,迈克菲被阻塞的请求,就好像它是一种病毒。我没有我的机器上的权利来编辑迈克菲的设置,是否有可能通过C#code解决?

However my problem is that McAfee is blocking the request, as if it was a kind of virus. I do not have rights on my machine to edit McAfee settings, is it possible to fix it through C# code?

感谢您

推荐答案

大概迈克菲阻止传出连接端口25(SMTP),只允许应用程序白名单发送电子邮件。

Probably McAfee is blocking outgoing connections on port 25 (SMTP), only allowing a white list of applications to send email.

你可以做的是:

将电子邮件在一个mailto:// URL。执行的mailto://,就好像它是一个正常的命令行。这将要求用户输入,但您可以创建一个漂亮的模板,为用户。 (语法) 通过正常的电子邮件客户端(如Outlook,债券)发送电子邮件,如果他们有,一个API。 使用一个HTTP /基于Web的供应商,有一个API。公开的人很可能也已被迈克菲。但是你可以创建和放大器;托管服务自己。要非常小心,只允许来自公司内部。 也许你公司拥有的投递文件夹,在这里你可以将所拾取的邮件服务器的邮件。 Put the email in a mailto:// url. Execute the mailto:// as if it is a normal command line. This will ask for input from the user, but you can create a nice template for the user. (syntax) Send the email through your normal email client (Outlook, Notes), if they have an API for that. Use a Http/Web based provider that has an API. Public ones are probably also blocked by McAfee. But you could create & host a service yourself. Be very carefull to only allow traffic from within your company. Maybe you company has a "drop folder", where you can drop emails that are picked up by the email server.