电子邮件不通过gmail ASP.NET MVC发送 [英] Email not sending through gmail ASP.NET MVC

查看:127
本文介绍了电子邮件不通过gmail ASP.NET MVC发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用asp.net mvc通过gmail发送电子邮件以进行验证,但它不起作用。我的代码是正确的但我不知道我需要在gmail中更改哪些设置以允许发送电子邮件。



我尝试了什么:



i am trying to send email through gmail for verification purpose using asp.net mvc but its not working .My code is correct but i don't know what setting do i need to change in gmail to allow sending emails.

What I have tried:

i am trying to send email through gmail for verification purpose using asp.net mvc but its not working .My code is correct but i don't know what setting do i need to change in gmail to allow  sending emails.

推荐答案

i have made the rough gmail account for testing and made changes roughly that i forget ,using that gmail its working but when i made new one for proper basis ,its not working

这让我相信这不是代码问题:

1-它适用于测试中的帐户。 />
2-它不适用于全新的帐户



我会假设这是一个帐户设置;并且很可能新帐户未设置为允许使用较少安全的应用程序

轻松修复:让安全性较低的应用访问您的帐户 - Google帐户帮助 [ ^ ]

This leads me to believe that this is not a code issue:
1- It works with an account in testing.
2- It does not work with a brand new account

I would hypothesize that this is an account setting; and most likely that the new account is not setup to allow the usage of Less Secure Apps
Easy Fix: Let less secure apps access your account - Google Account Help[^]


这篇关于电子邮件不通过gmail ASP.NET MVC发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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