Ghost needs additional setting after installation in order to send emails - for password resets, user invitations, system notifications, and other features. Ghost uses Nodemailer. You have two option using Direct Mail service or configuring an external mail service will generally be more reliable.

Then you need to configure your mail in order to reset your password or to send invitation to your team.

Mail configuration for Ghost 1.0

Ghost 1.0 is the last major version from the popular blog which introduced several big updates. The mail configuration is not change in this version but here you will find steps how to configure your ghost mail with mailgun:

Log on your server

locate your installation folder

for example - /var/www/blog.myblog.com

open with your favorite editor file: config.production.json

find and comment old mail configuration:

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

coment out this section by:

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

and add this new section(you need to change the user and pass for your account):

Direct Mail service

This method is by default and you can see message like after installation:

In the terminal used for starting Ghost, the process should display a WARNING message:

WARNING: Ghost is attempting to use a direct method to send email.
It is recommended that you explicitly configure an email service.

In general default Ghost settings will attempt to use the command line program, sendmail.

which sendmail

expected result:

/usr/sbin/sendmail

In case of nothing you don't have setup mail on your server.

We are not going to have a look on this solution since:

Direct can be quite inefficient as it queues all e-mails to be sent into memory. Additionally, if a message is not yet sent and the process is closed, all data about queued messages are lost. Thus direct is only suitable for low throughput systems, like password remainders and such, where the message can be processed immediatelly.

External mail - recommended

Choose your Service provider

Gmail - perfect for personal blogs

Hotmail

Mailgun - recomemded by ghost team

SendGrid

Yahoo

yandex

Configure your ghost installtion

Depending on your installation and version you can have a bit different process of installation.

Conclusion

Ghost has an easy to configure mails for production. It’s a free and open source software which in combination with free mail is powerful blogger tool. In this tutorial, we have shown how to configure basic mail service using Ubuntu 16.04 and gmail / mailgun as your web server.

Update: It seems that new Ghost Blog is checking the config file for valid format. So if you forget to add the quotation marks for your mail section you will get error invalid config. So always be sure to add quotations to your attributes. more for this error here: