azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

[BUG] Not able to assign display name for sender email address in Communication Email

Open Saurav-S-Purushothaman opened this issue 1 year ago • 1 comments

Describe the bug I am trying to change the display name of the sender email address. The user part of the sender email address is DoNotReply. I want to change that. Is that possible? If it is not possible to set the display name using sdk, what is the alternative to achieve this?

I tried setting the .setSenderAddress of EmailMessage as below. Both cases gives me the same error. :

But <[email protected]> is valid and its display name is DoNotReply. It sends email without any error

Exception or Stack Trace

Status code 400, "{"error":{"code":"BadRequest","message":"Request body validation error. See property 'senderAddress'","target":null,"details":null,"innererror":null}}

Expected behavior Feedback: It would be much better if the setSenderAddress is expecting an EmailAddress class instead of String so that we can set the display name. Ref - https://learn.microsoft.com/en-us/java/api/com.azure.communication.email.models.emailmessage?view=azure-java-stable#com-azure-communication-email-models-emailmessage-setsenderaddress(java-lang-string)

Saurav-S-Purushothaman avatar Apr 25 '24 08:04 Saurav-S-Purushothaman

@acsdevx-msft as there isn't a CODEOWNER for email

alzimmermsft avatar Apr 25 '24 12:04 alzimmermsft

@vcolin7 same request, follow up with communication team offline to get a positive handoff, and update the CODEOWNER entry appropriately

joshfree avatar May 06 '24 16:05 joshfree

@joshfree @vcolin7 Following up on these issues. Any progress? Can I expect anything in the near future? If not, could you guys guide me to any links or document for a work around to make this work? ( I wasn't able to find anything myself )

Saurav-S-Purushothaman avatar May 30 '24 14:05 Saurav-S-Purushothaman

Hi @yogeshmo, could you look into this when you get a chance? Thanks!

vcolin7 avatar Jun 12 '24 01:06 vcolin7

Having the same issue any updates?

Florzl avatar Aug 08 '24 08:08 Florzl