@Aditi Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.
From the information you provided, it seems that you have created an Azure managed domain in ECS, which has generated an email address in the format "donotreply@domain.azurecommtest.net". Now, you want to personalize the sender address using .setSenderAddress()
method in Java SDK to send emails.
- If the above understand is correct. Currently, ECS does not support dynamic email, however, you can configure multiple
mailFrom addresses
under your domain and use one of those configured senders. - If you want to add multiple sender names for your domain, your quota should not be on the default limit. You need to raise a support ticket to increase the default limits.
- Also, Sender usernames cannot be enabled for Azure Managed Domains or custom domains with default sending limits.
More information here How to add and remove multiple email sender addresses. - An Azure Communication Services quick start guide. | Microsoft Learn
Hope this helps, let me know if you have any further questions.