Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 2.59 KB

File metadata and controls

46 lines (32 loc) · 2.59 KB

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