无法通过MailMessage和smtpClient C#对Gmail smtp进行身份验证

时间:2018-10-25 13:23:05

标签: c# asp.net-mvc email gmail

我很难弄清楚如何解决此问题。因此,基本上,我正在建立一个简单的网站,在我的一个页面上,我有一个简单的表格。当我打开“允许安全程度较低的应用”时,一切工作正常-在Google中进行设置。有没有办法在不关闭“允许安全程度较低的应用程序”的情况下进行此工作?

我在搜索堆栈中找到类似的问题,但找不到此特定问题的答案。

这是我的代码:

xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"

0 个答案:

没有答案
相关问题