An Azure communication platform for deploying applications across devices and platforms.
Hi @Jax Castillo ,
Thank you for reaching us regarding the guidance on how to send emails using the Azure platform, specifically through Azure Communication Services.
- First, you need an Azure account with an active subscription. If you don’t have one, you can create an account for free.
- Make sure to have the latest version of the .NET Core client library installed on your system.
- An Azure Email Communication Services Resource created and ready with a provisioned domain Get started with Creating Email Communication Resource
- An active Communication Services resource connected with Email Domain. Connect a verified email domain to send email.
Create resources (if not already done):
- Go to the Azure portal > Create a resource > Search for Communication Services > Create one.
- Then create an Email Communication Services resource (linked or separate).
- Verify a domain: Use Azure-managed (e.g., something.azurecomm.net) for testing, or add/verify your custom domain.
- Reference : Prepare an Email Communication resource
Send your first email (no code needed):
- Navigate to your Communication Services resource.
- In the left menu > Email > Try Email.
- Select a verified sender domain.
- Enter recipient email, subject, plain text/HTML body.
- Click Send.
This is the fastest way to verify setup and send an email, point-and-click in the portal.
Reference: Send an email using Azure Communication Services (Quickstart)
Programmatic Sending Approach:
- Use the Azure.Communication.Email SDK (available in C#, JavaScript, Python, Java, etc.).
using Azure.Communication.Email;
using Azure;
string connectionString = "<your-communication-services-connection-string>";
var emailClient = new EmailClient(connectionString);
var emailContent = new EmailContent("Welcome Notification")
{
PlainText = "Hello, this is a test email from Azure Communication Services!"
};
var emailMessage = new EmailMessage(
senderAddress: "******@your-verified-domain.azurecomm.net", // or custom domain
recipientAddress: "recipient@example.com",
content: emailContent);
var response = await emailClient.SendAsync(Azure.WaitUntil.Completed, emailMessage);
Console.WriteLine($"Email sent! Message ID: {response.Value.MessageId}");
- Install: dotnet add package Azure.Communication.Email
- Quickstarts (multiple languages): Send an email
We can also send email using:
ACS supports SMTP with modern auth (Microsoft Entra ID / OAuth).
- Host: smtp.azurecomm.net
- Port: 587 (STARTTLS)
- Auth: Use an Entra app registration + client secret (or certificate) → create SMTP username in portal.
- Quickstart: Send an email using SMTP
Example PowerShell (Send-MailMessage):
Send-MailMessage -From "******@yourdomain.com" `
-To "recipient@example.com" `
-Subject "Test" `
-Body "Hello from Azure SMTP" `
-SmtpServer "smtp.azurecomm.net" `
-Port 587 `
-UseSsl `
-Credential (Get-Credential) # Entra app credentials
Kindly let us know if the above helps or you need further assistance on this issue.
Please "upvote" and "accept" if the information helped you. This will help us and others in the community as well.