1. 開啟 Google 兩階段驗證功能
![](https://life.origthatone.com/wp-content/uploads/sites/12/2019/07/Google01-1024x618.png)
設定完手機號碼後, 之後所有登入 google 帳號都需要驗證兩次, 密碼以及傳送到手機的驗證碼.
注意: 設定完畢, 所有登入google帳號的程式皆會被登出
2. 申請應用程式密碼
接著到 https://security.google.com/settings/security/apppasswords
申請一組應用程式密碼, 請選擇 郵件
![](https://life.origthatone.com/wp-content/uploads/sites/12/2019/07/Google02.png)
這組密碼就是 Google SMTP 密碼, 請抄記下來
![](https://life.origthatone.com/wp-content/uploads/sites/12/2019/07/Google03.png)
接著以 WordPress 外掛 WP Mail SMTP 來送信
![](https://life.origthatone.com/wp-content/uploads/sites/12/2019/07/Google00.png)
接著填入 SMTP 傳送參數,最重要的是剛剛那組 Google SMTP 密碼
![](https://life.origthatone.com/wp-content/uploads/sites/12/2019/07/Google04-1024x612.png)
測試送信看看
![](https://life.origthatone.com/wp-content/uploads/sites/12/2019/07/Google05.png)
收到信了
![](https://life.origthatone.com/wp-content/uploads/sites/12/2019/07/Google06.png)