0

我正在使用 SMTPAppender 为我的应用程序中的错误发送电子邮件。如果我指定主机设置以及我的帐户用户名和密码,我就可以做到这一点。这是我的配置文件的样子:

在此处输入图像描述

是否可以在此处使用匿名邮件帐户或以某种方式不使用用户名/密码。我不想将我的用户名/密码暴露给最终用户。我见过有人使用虚拟帐户,应用程序使用提供的帐户名称发送电子邮件。我只是不记得该怎么做。

有人可以帮我吗?

感谢期待。莫妮卡

4

1 回答 1

0

To use a dummy account, you would need to allow unauthenticated access to your SMTP server, which of course makes it possible to be used as an open relay for sending spam.

If you are storing your log4net settings in your app.config file, you should be able to use encrypted configuration settings to encrypt the whole section though.

于 2012-12-26T19:42:32.760 回答