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.

How To Config Gmail SMTP in Ghost CMS?

Hey, My Name Rajdeep Singh. In This, We Discuss How To set up Gmail SMTP in Ghost CMS.

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

Send email from a printer, scanner, or app - Google Workspace Admin Help
Set up a device or app to send email through Google WorkspaceThis article is for administrators. If you’re trying to send email from a device or app using your Gmail account, ask your&n
Official SMTP Docs By Google

You Use Gmail For SMTP. You Must Follow My 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
Authentication Required Send Email Error in Ghost CMS 

Enable 2-Step Verification :

Home Dashboard
Home Dashboard
  • Go To My Account On Google Click Here.
  • After Open Your Account Dashboard Inside Web Browser.
Home Dashboard Click Security Tab
Home Dashboard Click Security tab
  • Click the Security Tab.
Click 2-step Verification
Click 2-step Verification
  • After Scroll Down Click Again On 2-Step Verification.
  • Fill in Your Requirement Details And On You 2-Step Verification Inside Your Google Account.

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
  • Go To My Account On Google Click Here.
  • After Open Your Account Dashboard Inside Web Browser.
Home Dashboard Click To Security tab
Home Dashboard Click To Security tab
  • Click the Security Tab.
 Click To  App Password tab
Click To App Password tab
  • Click the Security Tab. After Scroll Down Click Again On App Password.
 Click To Select App tab
Click To Select App tab
  • Click Select app.
 Click To Other ( Custom Name)
Click To Other ( Custom Name)
  • Select Other(Custom name) Tab.
Enter Your Custom App Name
Enter Your Custom App Name
  • Fill Your Custom Name Inside Input Element. after Click Generate Button
Copy Password
Copy Password
  • Copy Your App Password and Click Done.


Configure in Ghost:

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

Note: If 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": "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"
    }
  }
},
...
Example Code.

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.

Note: Run Command In Ghost Install Folder.

ghost restart

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

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

Reference:

Send email from a printer, scanner, or app - Google Workspace Admin Help
Set up a device or app to send email through Google WorkspaceThis article is for administrators. If you’re trying to send email from a device or app using your Gmail account, ask your&n
Official SMTP Docs

Read More About Ghost CMS:

Setup Newly Launch Ghost CMS On Google Cloud Platform?
Hey, My Name is Rajdeep Singh. I’m Very Happy to see you again On My second Part OF the Ghost CMS Series.GhostCMSSeries#2.
How to Install Ghost CMS On Google Cloud Platform With Bitnami?
Hey, My Name is Rajdeep Singh.Im Very Happy. you are definitely like My New Article Series about Ghost CMS. GhostCMSSeries#1
Ghost CMS - Rajdeep Singh
Hey, My name Rajdeep Singh. Recently I create a Publication on medium because my motto to provide a piece of valuable information about computer science and Bioinformatic. so I start it.
Read All Blog Post About Ghost CMS

Contact me