Skip to content

This provides sample codes to provision Azure Email Communication Service (ECS) resource and apps using it to send emails

License

Notifications You must be signed in to change notification settings

devkimchi/email-communication-service-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Email Communication Service Sample

This provides sample codes to provision Azure Email Communication Services (ECS) resource and apps using it to send emails.

Prerequisites

Getting Started

Provision resources to Azure

  1. Fork this repository to your GitHub account.

  2. Run the commands below to set up a resource names:

    # Bash
    AZURE_ENV_NAME="notifications$RANDOM"
    
    # PowerShell
    $AZURE_ENV_NAME="notifications$(Get-Random -Min 1000 -Max 9999)"
  3. Run the commands below to provision Azure resources:

    azd auth login
    azd init -e $AZURE_ENV_NAME
    azd up

    Note: You may be asked to enter your Azure subscription, desired location and data location, custom domain name, and custom email address to provision resources. If you don't provide the custom domain name, only Azure managed domain will be provisioned.

  4. Verify the custom domain by following this document: Verify custom domain for ECS

  5. Connect the custom domain to ACS by following this document: Connect custom domain to ACS

  6. Send a test email using the custom email address as a sender by following this document: Send an email via ACS

Resources