Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change the display name of an Azure communication service MailFrom address?

I have recently created an Azure email communication service, to send automatic emails from a web app I am developing. I created a new MailFrom address ([email protected]) with the display name DoNotReply. I want to edit it and change the display name to something more user-friendly. For example, the name of my app, so the users know immediately where the email is coming from. Is it possible to change the display name of the existing MailFrom address, and if yes how, or should I delete it and create a new MailFrom address with the desired display name.

like image 363
Strnik Avatar asked Sep 07 '25 19:09

Strnik


1 Answers

As mentioned in the comments, it is possible to change the display name of an Azure communication service Mail From address, refer MSDOC.

  • Open your Email Communication Service.
  • Navigate to the Settings=> Provision Domains, select your Domain.

enter image description here

  • Navigate to Mail From Address under Email Services.

enter image description here

  • Select Add and enter the preferred Display Name and MailFrom address. Click Save.
  • This allows to create multiple Send Addresses with preferred Display names.

You can use the PowerShell commands to update the display name to your Sender Username of the domain, refer MSDOC:

1. az communication email domain sender-username update --email-service-name "<EmailServiceName>" --resource-group "<resourceGroup>" --domain-name "<domain_name>" --sender-username "<username>" --display-name "<displayname>"

2. az communication email domain sender-username update --email-service-name "<EmailServiceName>" --resource-group "<resourceGroup>" --domain-name "<domain_name>" --sender-username "<username>" --display-name "<displayname>" --subscription "<subscriptionId>"
  • I could update the display name of my domain [email protected] as shown below:
PS /home/uname> az communication email domain sender-username update --email-service-name "pravallikaecs" --resource-group "rgname" --domain-name "AzureManagedDomain" --sender-username "donotreply" --display-name "Contoso News Alerts" --subscription "b83c1ed3-cxxxx-2b83a074c23f"

{
  "displayName": "Contoso News Alerts",
  "id": "/subscriptions/b83cxxxxx074c23f/resourceGroups/rgname/providers/Microsoft.Communication/emailServices/pravallikaecs/domains/AzureManagedDomain/senderUsernames/donotreply",
  "name": "donotreply",
  "provisioningState": "Succeeded",
  "resourceGroup": "rgname",
  "systemData": {
    "createdAt": "2024-06-26T11:00:17.4708833Z",
    "createdBy": "[email protected]",
    "createdByType": "User",
    "lastModifiedAt": "2024-06-26T11:00:17.4708833Z",
    "lastModifiedBy": "[email protected]",
    "lastModifiedByType": "User"
  },
  "type": "microsoft.communication/emailservices/domains/senderusernames",
  "username": "donotreply"
}

enter image description here

like image 76
Pravallika KV Avatar answered Sep 10 '25 23:09

Pravallika KV