Sometimes your Ghost installation needs to send out emails, and it needs an emailservice for that. By default Ghost has support for MailGun, Gmail or SendGrid. Paid plans on Azure get a Free Tier of SendGrid with their subscription, so that's what I'm going with.
Create a SendGrid account
- In the Azure Portal, go Create a resource
- Find SendGrid Email Delivery
- Fill in the form fields, and select the Free tier
Configure SendGrid
- In the Azure Portal, find your newly created SendGrid resource
- Click Manage, it will redirect you to the SendGrid website
- In the menu, under Settings, select API Keys
- Click Create API Key, give it a name and select Restricted Access
- Only enable Mail Send, and click Create & View
- Copy the new key and save it for use in the next step
Configure Ghost to use SendGrid
- In the Azure Portal, go to the Azure App Service running your Ghost blog
- Select Application Settings in the left menu
- Fill in the following App Settings:
- mail__from > you can choose this yourself, eg. noreply@yourdomain.com
- mail__options__service > SendGrid
- mail__transport > SMTP
- mail__options__auth__user > apikey
- mail__options__auth__pass > the key from the previous step
You can test the setup by going into your Ghost admin panel. Under Labs you will find an email testing tool. You should receive the email and you can check SendGrid for more information!