Search code examples
azureemailazure-communication-services

Is it possible to use email name other than "DoNotReply" in Azure Email Communication Services?


I have configured email notifications using the Azure Communication Services. However, the emails are always sent from the "DoNotReply" user. Would it be possible to use something more meaningful for the users to understand/fitler the emails?

enter image description here


The portal only shows a single option, even with a custom domain:

enter image description here

I have tried changing "replyTo" (although no reply is obviously intended), but that did not help, outlook/gmail still showed the "DoNoReply" as sender. Can I somehow change the sender so that it looks nicer for the users?

The code I have tried with "replyTo" is below:

const client = new EmailClient(connectionString);

const emailMessage: EmailMessage = {
  senderAddress: "[email protected]",
  replyTo: [
    {
      address: "[email protected]",
      displayName: "Some Fancy Name"
    }
  ],
  content: {
    subject,
    html
  },
  recipients
};

Solution

  • It is certainly possible to do so. Please see the detailed instructions here: https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/email/add-multiple-senders.

    Currently you can do so by following these steps in Azure portal:

    1. Go to your Email Communication Service.
    2. Click on "Domains" (left side menu) and then click on your domain.
    3. Click on "Provision Domains" (left side menu) and then click on the domain again.
    4. Click on "Mail From Address" (left side menu) and then click on "Add" button to add the desired email address.

    You should also be able to do so by using one of the available SDKs for communication service.