luolongfei преди 3 години
родител
ревизия
1bfe899e9e
променени са 2 файла, в които са добавени 26 реда и са изтрити 2 реда
  1. 9 2
      README.md
  2. 17 0
      README_EN.md

+ 9 - 2
README.md

@@ -115,6 +115,8 @@ Documentation: [English version](https://github.com/luolongfei/freenom/blob/main
 
 2、允许不够安全的应用
 
+*推荐打开浏览器隐私模式后再登录 gmail 进行设置,防止当你有多个 gmail 账户时无法跳到正确的设置地址。*
+
 登录谷歌邮箱后,访问 [谷歌权限设置界面](https://myaccount.google.com/u/0/lesssecureapps?pli=1&pageId=none) ,启用允许不够安全的应用。
 
 ![gmail配置02](https://s2.ax1x.com/2020/01/31/1392KH.png "gmail配置02")
@@ -124,6 +126,10 @@ Documentation: [English version](https://github.com/luolongfei/freenom/blob/main
 
 登录谷歌邮箱后,去 [gmail的这个界面](https://accounts.google.com/b/0/DisplayUnlockCaptcha) 点击允许。这种情况较为少见。
 
+**注意:由于直接使用 gmail
+密码登录容易触发谷歌安全机制,故推荐参考官方文档启用应用专用密码:[https://support.google.com/mail/answer/185833?hl=zh-Hans](https://support.google.com/mail/answer/185833?hl=zh-Hans)**
+
+**使用账户+应用专用密码登录,就算频繁换 ip 登录 gmail 也不会触发谷歌安全机制。**
 ***
 
 </details>
@@ -170,8 +176,9 @@ Documentation: [English version](https://github.com/luolongfei/freenom/blob/main
 
 </details>
 
-上面介绍了三种邮箱的设置方法,如果你不想使用邮件送信,而**由于程序默认启用邮件送信方式,故不配置邮件送信的话,一定要记得关闭邮件推送方式。**
-将根目录下的`.env`文件中的`MAIL_ENABLE`的值改为`0`即可关闭邮件推送方式。
+上面的动作完成后,在`.env`文件中,将`MAIL_USERNAME`和`MAIL_PASSWORD`设置为你的邮箱和密码(或令牌),将`TO`设置为你的收信邮箱,然后将`MAIL_ENABLE`的值设为`1`以启用邮箱送信功能。
+
+上面介绍了三种邮箱的设置方法,如果你不想使用邮件送信,将根目录下的`.env`文件中的`MAIL_ENABLE`的值改为`0`即可关闭邮件推送方式。
 
 *邮件 送信部分完。*
 

+ 17 - 0
README_EN.md

@@ -68,6 +68,9 @@ 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.
 
@@ -77,6 +80,20 @@ Also, if prompted
 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.
 
+**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)**
+
+**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.**
+
+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.
+
+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.
+
 ### 🤶 Telegram bot
 
 ***