How to Send Email from Azure
Originally published at https://adamtheautomator.com by June Castillote onJanuary 13, 2021.
Microsoft Azure does not have an email delivery service. Whether you are testing applications or developing scripts in Azure to send emails, know that there is no native email service available to you.
Outbound SMTP connection via port 25 is completely blocked in Azure, too. If you are an enterprise client, you may request to unblock port 25 for your Azure tenant. Otherwise, how else can you send emails from Azure?
There are typically two ways to let outbound emails through Azure; using an SMTP smart host and requests. Most email delivery services offer both SMTP and API methods of sending emails. In this article, you’ll learn how to send emails from Azure to the rest of the world.
Prerequisites
This article is a How-To, and if you plan to follow the examples as they progress, there are some requirements you must meet.
- An Azure subscription. You may register for a free trial Azure subscription if you don’t have one yet.
- An Azure Virtual Machine (VM). Refer to Create a Windows virtual machine in the Azure portal ****to learn how to create a new VM if you don’t have one yet.
- Windows PowerShell 5.1 or PowerShell 7.1.