Configure SMTP For Outbound Emails (Ghost SMTP Setup)

Configure SMTP For Outbound Emails (Ghost SMTP Setup)
  1. Transactional Email: This email setup is used for sending out ghost system emails such as member sign in/up emails, Admin Invite or Password reset emails
  2. Newsletter Email: for sending out posts to your members.

In this article I will go for the Transactional email. To setup emails you will need a SMTP server. I am Using SendGrid for the guide.

Step 1

Login in to your server

ssh [email protected]	

Step 2

When setting up SMTP email sending for Ghost, you only need to make an edit to the config.production.json file.

Access the file by running this command:

nano /var/www/ghost/config.production.json

Step 3

Within the file replace

"mail": {
    "transport": "Direct"
  },

with

"mail": {
    "from": "[email protected]",
    "transport": "SMTP",
    "options": {
        "host": "smtp.sendgrid.net",
        "port": 587,
        "auth": {
            "user": "apikey",
            "pass": "enter-your-api-key-here"
        }
    }
},

Save the file

Step 4

In order for your settings changes to take effect, restart the ghost instance using the following command

ghost restart

Boom! you have successfully configured SMTP for your ghost publication

Checkout https://spookey.io for managed ghost publication.

You've successfully subscribed to Visioun Updates.
Great! Next, complete checkout for full access to Visioun Updates.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.