无法通过Azure托管环境发送邮件 [英] Unable to send mail through Azure hosting environment

查看:89
本文介绍了无法通过Azure托管环境发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在我的网络应用程序中,我使用System.Net.Mail发送邮件; (c#)。

In my web application I am sending mail using using System.Net.Mail; (c#).

在我的本地机器邮件工作正常,但我在Azure上托管它邮件不起作用。

In my local machine mailing is working fine, but I hosted it on Azure the mail doesn't work.

请建议

推荐答案

您好dgauravk,

Hi dgauravk,

我们是否正在使用Azure App Services并尝试设置邮件?

Are we using Azure App Services and trying to set up the mail?

如果是,您将需要将SendGrid与Azure App Services一起使用。请按照这个

文件
因为它详细讨论了如何使用SendGrid发送电子邮件的每一步。

If yes, you will need to use SendGrid with Azure App Services. Please follow this document as it talks about each step in detail on how to send email using SendGrid.


这篇关于无法通过Azure托管环境发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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