如何启用gmail以接收来自我的项目的电子邮件,电子邮件通知Identity EF,VS13 Update 2 [英] How can I enable gmail to recieve email from my project, Email notification Identity EF , VS13 Update 2

查看:162
本文介绍了如何启用gmail以接收来自我的项目的电子邮件,电子邮件通知Identity EF,VS13 Update 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

string code = await UserManager.GenerateEmailConfirmationTokenAsync(user.Id);
                   var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, code = code }, protocol: Request.Url.Scheme);
                   await UserManager.SendEmailAsync(user.Id, "Confirm your account", "Please confirm your account by clicking <a href=\"" + callbackUrl + "\"></a>");

                   return RedirectToAction("RegistrationSuccess", "Account");





这些代码行是默认的代码更新两个MVC控制器我已经取消注释它们并且可以使用雅虎但没有Gmail



these lines of code are the default ones which came with Update two MVC Controller I had Uncommented them and it works with Yahoo but not with Gmail

推荐答案

这篇关于如何启用gmail以接收来自我的项目的电子邮件,电子邮件通知Identity EF,VS13 Update 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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