gpt4 book ai didi

email - 树莓派 gmail 登录被谷歌阻止

转载 作者:行者123 更新时间:2023-12-01 00:47:07 24 4
gpt4 key购买 nike

我想从我的树莓派发送自动电子邮件。我遵循了本指南 https://wiki.archlinux.org/index.php/SSMTP

我在尝试发送电子邮件时遇到错误

    ~>cat tmp.txt | mail -s "subject" -t EXAMPLE@gmail.com
mail: cannot send message: Process exited with a non-zero status

我还收到一封来自 Google 的电子邮件,告诉我登录尝试被阻止,因为我没有使用现代安全标准: enter image description here

我应该使用不同的发送电子邮件还是应该使用不同的电子邮件服务?

最佳答案

您可以转到该 Gmail 帐户设置并查找“允许安全性较低的应用程序”并将其打开。

myaccount.google.com -> "Sign-in & security" -> "Allow less secure apps: ON"

这将允许您以不太安全的登录过程发送电子邮件。

enter image description here

否则,我看到一些帖子说 this在 python 2.7 上有帮助

引用: https://www.raspberrypi.org/forums/viewtopic.php?t=94023&p=659005

关于email - 树莓派 gmail 登录被谷歌阻止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33587550/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com