Azure offers free smtp relay using the SendGrid application. SendGrid is a cloud service that provides email delivery and marketing campaigns. The specific offer is for up to 25.000 emails per month. Also this offers provides full reporting and analytics and 24/7 support.
At this post we will see how to create a SendGrid free account that can be used for many purposes, like:
- Send emails through an application using the SendGrid API
- Send email campaigns, newsletters, etc using the SendGrid SMTP service
At the Azure Portal, portal.azure.com, search for sendgrid and click the “SendGrid Email Delivery”
The SendGrid account wizard will open. Fill the name and password, select subscription and resource group and choose the F1 free pricing tier. Also fill the contact information, accept the legal terms and press “Create”
Once the SendGrid Account is created, navigate to it and select Manage
The SendGrid portal will open. Navigate to the Settings / API Keys to Create an API Key.
Enter a name for the key. For permissions you only need send emails So select Restricted Access and add “Mail Send”. Press create & view to create the key.
You will only see the key once, upon creation. After that there is no way to see the key again, so copy and keep it safe.
We are ready to send emails using any host that supports SMTP. The settings are:
- Server: smtp.sendgrid.net
- Username: apikey
- Password: “The API Key you created before”
- Ports: SSL 465, Unencrypted: 25 , TLS 586
- More about SendGrid SMTP: https://sendgrid.com/docs/API_Reference/SMTP_API/integrating_with_the_smtp_api.html
Pantelis Apostolidis is a Cloud Solutions Architect at Microsoft and an ex Microsoft Azure MVP. For the last 15 years, Pantelis has been involved to major cloud projects in Greece and abroad, helping companies to adopt and deploy cloud technologies, driving business value. He is entitled to a lot of Microsoft Expert Certifications, demonstrating his proven experience in delivering high quality solutions. He is an author, blogger and he is acting as a spokesperson for conferences, workshops and webinars. He is also an active member of several communities as a moderator in azureheads.gr and autoexec.gr. Follow him on Twitter @papostolidis.