原本的 WordPress 內建的 email 為 user@example.com,如需讓訪客瀏覽網站的同時可以將回饋透過留言或寄信的方式給自己,這部分需額外做 SMTP(Simple Mail Transfer Protocol,簡單郵件傳輸設定),讓我們來看操作流程:
1. Google:
設定 google 帳戶中的安全性,開啟兩步驟驗證與建立應用程式密碼,完成後 google 會提供一份驗證密碼。
2. WordPress:
安裝 「WP Mail SMTP by WPForms」,以便將 wordpress 與 google 的信箱做連結。
Step 1. 登入 Google
輸入個人的 google 帳號密碼。
Step 3. 點選 兩步驟驗證
點選開始使用與立即試用,填寫手機號碼後待簡訊驗證碼回傳後輸入,確認「兩步驟驗證」為啟用狀態。
Step 4. 點選 兩步驟驗證-應用程式密碼
新增應用程式密碼後,名稱輸入WordPress SMPT 與選擇其他裝置,並存 google 提供的應用程式密碼。
Step 5. 安裝 WP mail SMTP 外掛
點選外掛->安裝外掛->搜尋 WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin
Step 6. 設定 WP mail SMTP 與 google 的關聯
填入以下設定: SMTP 伺服器:smtp.gmail.com SMTP 使用者名稱:Google 帳號 SMTP 密碼:Google 的應用程式密碼