RapidYT

How To Config Gmail SMTP in Ghost CMS?

Gmail Provide Free SMTP Services For us. Setup Gmail SMTP Send Free Email In Ghost CMS With Copy and Paste Code.

By ghost 2 min read

Gmail SMTP Provide Free Send 2000 Email Par day. If You use Zoho free Account, You Never Be Send Free Email With SMTP.

https://support.google.com/a/answer/176600?hl=en

You Use Gmail For SMTP. You Must Follow Me All Steps. All The Steps Require:

  1. Enable Two-Step Authentication In Gmail
  2. Create App Password In Gmail
  3. Configure in Ghost
  4. Restart Your Ghost CMS.

Enable 2-Step Verification In Gmail

Firstly Enable 2-Step Verification In Your Gmail Account. You Do not Enable 2-Step Verification. You Never Send Email, And You Face an Error In Ghost CMS.

Authentication required Send Email Error in Ghost CMS

Enable 2-Step Verification

Home Dashboard

Home Dashboard Click Security tab

Click 2-step Verification


Create App Password In Gmail

Firstly Create A new Password For Your SMTP. App Password Help To Secure Your Account And You Do Not Provide A real Account Password information in You SMTP.

Home Dashboard

Home Dashboard Click To Security tab

Click To App Password tab

Click To Select App tab

Click To Other (Custom Name)

Enter Your Custom App Name

Copy Password


Configure in Ghost:

Configure Your email settings inside the config.production.json file. You add the code below just after the database section.

...
"mail": {
  "from": "Your-Gmail@gmail.com",
  "transport": "SMTP",
  "options": {
    "host": "smtp.gmail.com",
    "service": "Gmail",
    "port": "465",
    "secure": true,
    "auth": {
      "user": "Your-Gmail@gmail.com",
      "pass": "Paste Your-App-Password"
    }
  }
},
...

In this example, you use Your Gmail. Replace Your-Gmail@gmail.com and Paste Your Copy App Password.


Restart Your Ghost CMS

Then, restart all Ghost CMS Services for changes to take effect.

ghost restart

If You Use Bitnami to Install Ghost CMS, Make Sure Your Restart Ghost CMS And Apache.

sudo /opt/bitnami/ctlscript.sh restart ghost
sudo /opt/bitnami/ctlscript.sh restart apache

Reference

https://support.google.com/a/answer/176600?hl=en

Read More About Ghost CMS

https://officialrajdeepsingh.dev/how-to-add-custom-domain-on-your-google-compute-engine/

https://officialrajdeepsingh.dev/setup-newly-launch-ghost-cms-on-google-cloud-platform/