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.

Rajdeep Singh
Rajdeep Singh

3 min read

Table of contents

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

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.

Suppose You Use Bitnami To Install Ghost CMS. So Follow This Path /opt/bitnami/apps/ghost/htdocs/config.production.json to Change Code, And You Do not use Bitnami config.productio.json file inside Your Ghost Root Folder.

"mail": {
  "from": "",
  "transport": "SMTP",
  "options": {
    "host": "",
    "service": "Gmail",
    "port": "465",
    "secure": true,
    "auth": {
      "user": "",
      "pass": "Paste Your-App-Password"
copy success

In this example, you use Your Gmail. Replace and Paste Your Copy App Password.

Restart Your Ghost CMS

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

Run Command In Ghost Install Folder.

ghost restart
copy success

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

sudo /opt/bitnami/ restart ghost
sudo /opt/bitnami/ restart apache
copy success


Read More About Ghost CMS