📣🚀🐣🌼 Sonic Bloom - Spring Sale! | Exclusive offers for Cloud Shared Hosting - 70% OFF | Starting from $3.99/mo
Learn Ghost

Young blogging platform build on tope of node.js for fast loading speed and easy scalability!

• Last Updated: 05/14/2020
• ( 3 minutes reading )

How to configure and test SMTP email functionality in your Ghost blog

Introduction

Having a reliable email service configured for your Ghost blog will ensure that your emails are sent successfully, and your viewers receive your newsletters on time. When you install Ghost on HostArmada, the email settings will be the default ones. Thus any emails you attempt to send will not go through. In this tutorial, we will guide you through the way of setting up an SMTP service for your blog and have your emails delivered without any issues. Let’s begin!

 

Setting up your SMTP service

The email configuration of your Ghost blog is held within the configuration.development.json file. This file can be found when you access the root directory of your Ghost website. If you are not sure which one it is, please feel free to check our knowledge base article about Which is my website’s root directory.

Once you have figured out which is the root directory of your website, you are ready to proceed with the configuration. Please open the configuration.development.json file for editing either through SSH, the FileManager, or FTP.

After the file has been opened, please find the following snippet of code:

 

 "mail": {

    "transport": "Direct"

  },

 

After you have found it, delete it and replace it with:

 

  "mail": {

    "from": "[email protected]",

    "transport": "SMTP",

    "options": {

        "host": "hostname",

        "port": 25,

        "auth": {

            "user": "youremailaccount’sname",

            "pass": "youremailaccount’spassword"

        }

    }

},

 

Here is an example of how this should look:

 

   "mail": {

    "from": "[email protected]",

    "transport": "SMTP",

    "options": {

        "host": "ger1.armadaservers.com",

        "port": 25,

        "auth": {

            "user": "[email protected]",

            "pass": "password"

        }

    }

},

 

Please make sure that the “from” and “user” fields are the same to ensure no errors are received when sending emails.

Finally, when this is done, you need to restart your Ghost application to apply the new configuration. To do so, you need to login via SSH and navigate to the root directory of your Ghost application. Once there, please execute the following command:

 

ghost restart

 

This will restart your blog, and then your new mail settings will be accepted!

 

Testing SMTP Settings

To test your email service, you have to log into your Ghost Admin Dashboard. To do so, please open your favorite browser and enter your domain name, followed by "/ghost". For example:

  • ghost.hostarmadatutorials.com/ghost

 

Login page

 

After logging in, please point your attention to the left side of the screen. You will see a sidebar, and from the listed choices, please click the “Labs” option.

 

Access Labs

 

This will take you to the “Labs” page, allowing you to implement all sorts of utilities on your blog. Testing the email service option is located on the bottom of the screen, under the “Testing Tools” section.

 

Test Email Configuration

 

To send an email and test the new configuration, please press the “Send” button located on the far right side of the “Test email configuration” row. Upon clicking the “Send” button, a blue bar will appear on the top of the screen, telling you to check your email account, which corresponds to the currently logged-in user - in this case, the owner.

 

Check Email Test Message

 

If you received the following message:

 

Email Test Message Received

 

Then you can rest assured that the SMTP settings of your blog are configured correctly!

 

There you have it! The way of setting up an SMTP service for your Ghost blog. We hope that the explanation provided in this tutorial was sufficient and that you were able to handle it on your own. Should you face any difficulties with this setup, please, do not hesitate to contact our Technical Support team over the ticketing system in your Client Area. They are 24/7 available at your disposal and will be happy to assist you with the setup if needed.

 

 

...
Sebahat
Technical Support Captain

Sebahat is a young and bright woman who has become an invaluable part of our team. She started as a Customer Care Representative, mastering that role and, along the way, growing into a tech-savvy individual who is well acquainted with every support layer of the company. Driven by her aim to improve our customers’ experience constantly, she is committed to enhancing the extraordinary support we deliver.