Prerequisites - Sendgrid account and getting the nessecary API keys.

  1. Sign in to sengrid
  2. go to settings -> api keys -> create api key
  3. As always, you should follow the "principle of least privilege" and chooce restricted access and select Mail send.
  4. Hit Create and view.
  5. Save the api key - you will need it in the next step.

Setting up the server

  1. SSH to you droplet
  2. Navigate to the ghost configuration file by typing in cd /var/www/ghost
  3. Open up the config file by typing vi config.production.json to open it with vim.
  4. Next, change the setting under mail configuration.
  5. Paste the api key from sendgrid portal.
  6. You are done! You can now send invites to fellow contributors.
 "mail": {
    "transport": "SMTP",
    "options": {
      "service": "Sendgrid",
      "host": "smtp.sendgrid.net",
      "port": "587",
      "secureConnection": false,
      "auth": {
        "user": "apikey",
        "pass": "GET_API_KEY_FROM_SENDGRID_PORTAL"
      }
    }

Test and verify

  1. Inside ghost admin panel navigate to settings->labs.
  2. At the bottom of the page there is a button for sending a test email.