[英]MVC app doesn't send email when deployed on a remote server
When an exception occurs in my MVC app, my code sends an email. 当我的MVC应用中发生异常时,我的代码会发送一封电子邮件。
The thing works like a charm when I deploy locally. 当我在本地部署时,它就像一个魅力。 On the remote server, though, it doesn't send any email.
但是,在远程服务器上,它不发送任何电子邮件。
Below are some details about my deployment environment. 以下是有关我的部署环境的一些详细信息。
Web Server: IIS 7.5 Web服务器: IIS 7.5
.NET Framework: v4 .NET Framework: v4
MVC version: 4 MVC版本: 4
Windows Server: Windows Server 2008 R2 Standard Windows Server: Windows Server 2008 R2标准版
Help appreicated. 帮助表示赞赏。
Sorry, I realized that I had to grant permissions to the user ASP.NET v4.0 , which was the name of the Application Pool / Identity under which my application was registered / running. 抱歉,我意识到必须向用户ASP.NET v4.0授予权限,这是在其上注册/运行应用程序的应用程序池 / 标识的名称。
That solved the problem. 那解决了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.