Browse Source

gmail 相关文档更新

luolongfei 3 years ago
parent
commit
d6916c18f0
3 changed files with 19 additions and 32 deletions
  1. 1 1
      .env.example
  2. 7 12
      README.md
  3. 11 19
      README_EN.md

+ 1 - 1
.env.example

@@ -32,7 +32,7 @@ FREENOM_PROXY=''
 # 机器人邮箱账户 Email of robot
 MAIL_USERNAME=''
 
-# 机器人邮箱密码(Gmail填密码,QQ邮箱或163邮箱填授权码) Password of the robot email
+# 机器人邮箱密码(Gmail 应用专用密码,QQ 邮箱或 163 邮箱填授权码) Password of the robot email
 MAIL_PASSWORD=''
 
 # 用于接收通知的邮箱 Email address used to receive notifications

+ 7 - 12
README.md

@@ -122,6 +122,8 @@ Thanks for non-commercial open source development authorization by JetBrains.
     <summary>设置Gmail</summary>
 <br>
 
+*推荐打开浏览器隐私模式后再登录 gmail 进行设置,防止当你有多个 gmail 账户时无法跳到正确的设置地址。*
+
 1、在`设置>转发和POP/IMAP`中,勾选
 
 - 对所有邮件启用 POP
@@ -131,23 +133,16 @@ Thanks for non-commercial open source development authorization by JetBrains.
 
 然后保存更改。
 
-2、允许不够安全的应用
-
-*推荐打开浏览器隐私模式后再登录 gmail 进行设置,防止当你有多个 gmail 账户时无法跳到正确的设置地址。*
-
-登录谷歌邮箱后,访问 [谷歌权限设置界面](https://myaccount.google.com/u/0/lesssecureapps?pli=1&pageId=none) ,启用允许不够安全的应用。
+2、开启两步验证
 
-![gmail配置02](https://s2.ax1x.com/2020/01/31/1392KH.png "gmail配置02")
+参考官方文档:[开启两步验证](https://support.google.com/accounts/answer/185839)
 
-另外,若遇到提示
-> 不允许访问账户
+3、配置使用应用专用密码登录邮箱
 
-登录谷歌邮箱后,去 [gmail的这个界面](https://accounts.google.com/b/0/DisplayUnlockCaptcha) 点击允许。这种情况较为少见。
+参考官方文档:[使用应用专用密码登录](https://support.google.com/mail/answer/185833?hl=zh-Hans)
 
-**注意:由于直接使用 gmail
-密码登录容易触发谷歌安全机制,故推荐参考官方文档启用应用专用密码:[https://support.google.com/mail/answer/185833?hl=zh-Hans](https://support.google.com/mail/answer/185833?hl=zh-Hans)**
+**由于 Gmail 已不再支持“不安全的登录方式”,故目前只能使用账户加应用专用密码的方式登录。**
 
-**使用账户+应用专用密码登录,就算频繁换 ip 登录 gmail 也不会触发谷歌安全机制。**
 ***
 
 </details>

+ 11 - 19
README_EN.md

@@ -69,6 +69,8 @@ name has not been renewed.
 
 ### 📪 Setting up Gmail
 
+*It is recommended to open the privacy mode of your browser and then log in to gmail to set up the settings, to prevent you from not being able to jump to the correct settings URL when you have multiple gmail accounts.*
+
 1.In `Settings > Forwarding and POP/IMAP`, tick
 
 - Enable POP for all messages
@@ -78,30 +80,20 @@ name has not been renewed.
 
 Then save your changes.
 
-2.Allow less secure applications
-
-*It is recommended that you turn on your browser's privacy mode before logging into gmail to set up your settings, to
-prevent you from not being able to jump to the correct settings address when you have multiple gmail accounts.*
-
-After logging into Google Mail, visit [this page](https://myaccount.google.com/u/0/lesssecureapps?pli=1&pageId=none) and
-enable the application that is not secure enough.
+2.Enable two-step verification
 
-Also, if prompted
-> Do not allow access to account
+Refer to the official document: [Turn on 2-Step Verification](https://support.google.com/accounts/answer/185839?hl=en)
 
-After logging in to Google Mail, go to [this page](https://accounts.google.com/b/0/DisplayUnlockCaptcha) and click
-Allow. This situation is relatively rare.
+3.Configure login with application-specific password
 
-**Note: Since using gmail directly password to sign in easily triggers Google security mechanism, so we recommend to
-refer to the official document to enable the application-specific
-password: [https://support.google.com/mail/answer/185833](https://support.google.com/mail/answer/185833)**
+Refer to the official document: [Sign in with App Passwords](https://support.google.com/mail/answer/185833?hl=en)
 
-**Sign in with an account+application-specific password, so you won't trigger Google security restrictions even if you
-change your IP frequently to sign in to gmail.**
+**Because Gmail no longer supports "insecure login", you can only use the account plus application-specific password to
+login now.**
 
-After the above operation is finished, set `MAIL_USERNAME` and `MAIL_PASSWORD` to your mailbox and password (or token)
-in `.env` file, set `TO` to your incoming mailbox, and then set the value of `MAIL_ENABLE` to `1` to enable the mailbox
-delivery function.
+After the above operation is finished, set `MAIL_USERNAME` and `MAIL_PASSWORD` to your mailbox and application-specific
+password in `.env` file, set `TO` to your incoming mailbox, and then set the value of `MAIL_ENABLE` to `1` to enable the
+mailbox delivery function.
 
 If you don't want to use email related features, change the value of `MAIL_ENABLE` in the `.env` file in the root
 directory to `0` to turn off the email push method.