.net - 使用 Google 2FA 发送 Powershell 电子邮件?

标签 .net powershell email automation

我是一名 Powershell 开发人员,对社区推荐电子邮件提供商发送每日通知的内容感到好奇。

这仅供个人使用,但我知道 Google 的 2FA 会阻止自动执行此类操作。

基本上只是希望能够通过电子邮件向自己发送每日提醒,如 Send-MailMessage,我们将不胜感激。

最佳答案

如果您创建应用程序密码,您可以使用启用双因素身份验证的 gmail。参见 my answer hereGoogles documentation here .

关于.net - 使用 Google 2FA 发送 Powershell 电子邮件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46516607/

相关文章:

c# - 为什么添加 Microsoft.Bcl.Async 包后,app.config 文件中会添加一个 "bindingRedirect"?

powershell - 如何同时安装 Powershell 模块?

azure - 无法通过 Azure 自动化将数据附加到共享点文件

c# - 像浏览器一样检索网页内容

.net - Winforms Crystal 报表 - "Failed to load database information"错误

c# - 发送匿名邮件 C#

java - 无法访问 freemarker 模板中的 session 属性

email - 如何使用 mail-listener2 获取最新电子邮件

c# - 如何将现有对象实例包装到 DispatchProxy 中?

Powershell Hyper-V 脚本不起作用? + 自动安装 Windows