diff --git a/core/server/controllers/admin.js b/core/server/controllers/admin.js index fa760f713b..c4cf34887b 100644 --- a/core/server/controllers/admin.js +++ b/core/server/controllers/admin.js @@ -132,6 +132,23 @@ adminControllers = { password: password }).then(function (user) { api.settings.edit('email', email).then(function () { + var message = { + to: email, + subject: 'Your New Ghost Blog', + html: '

Hello!

' + + '

Good news! You\'ve successfully created a brand new Ghost blog over on ' + config().url + '

' + + '

You can log in to your admin account with the following details:

' + + '

Email Address: ' + email + '
' + + 'Password: The password you chose when you signed up

' + + '

Keep this email somewhere safe for future reference, and have fun!

' + + '

xoxo

' + + '

Team Ghost
' + + 'https://ghost.org

' + }; + mailer.send(message).otherwise(function (error) { + errors.logError('Unable to send welcome email. Reason: \n' + error.message); + }); + req.session.regenerate(function (err) { if (!err) { if (req.session.user === undefined) {