【 Cloud 】於 Amazon Lightsail Ghost Blog 設定 Mailgun SMTP

【 Cloud 】於 Amazon Lightsail Ghost Blog 設定 Mailgun SMTP
Photo by Esperanza Doronila / Unsplash

內容

  • 學習目標
  • 前置準備作業
  • 啟用 Mailgun SMTP 於 Amazon Lightsail Ghost

學習目標

  • 如何在 Amazon Lightsail Ghost 設定 Mailgun SMTP 寄送信件

前置準備作業

  • 已建立 Amazon Lightsail Ghost Blog Instance
  • 已建立 Mailgun

啟用 Mailgun SMTP 於 Amazon Lightsail Ghost

Step 1. 取得 Mailgun 的設定資訊

  • 登入 Mailgun 後,點選左邊的 Sending > Overview

---2021-08-12---9.45.50

  • 點選 SMTP > Select

---2021-08-12---9.48.27

  • 取得 SMTP hostnamePortUsernameDefault password

---2021-08-12---9.50.09

Step 2. 登入到 Amazon Lightsail Ghost Instance 並設定 SMTP

  • 請輸入 sudo vi /bitnami/ghost/config.production.json 開啟設定檔
  • 將下方的 Mailgun 連線設定輸入到 config.production.json 設定檔中
    • 輸入 i 進入編輯模式並在 "mail" 的 JSON Key 中加入下方資訊

---2021-08-12---10.00.04

  • 存檔並離開
    • ① 按 ESC 鍵進入指令模式
    • ② 輸入 :wq! 存檔並離開

Step 3. 重新啟動 Service

  • 輸入 sudo /opt/bitnami/ctlscript.sh restart 指令

---2021-08-12---10.04.28

Step 4. 透過新增 Staff 寄送邀請信測試

  • 新增 Staff

---2021-08-12---10.06.18

  • 收到邀請信

---2021-08-12---10.18.31

GitHub

List of blogs