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

How to define a Content Id on an attachment using azure-communication-email?

Open exegonzalez opened this issue 3 years ago • 3 comments

I need to add an image in base64 format as an attachment and define a Content Id to reference it in an <img src="cid:myimagecid"> tag in the mail template. EmailAttachment only allows to define:

attachment = EmailAttachment(
    name="...",
    attachment_type="...",
    content_bytes_base64=...
)

Is there any way to define that Content Id in the attachment? Thanks.

exegonzalez avatar Sep 21 '22 14:09 exegonzalez

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Storage:0.09620004,Cosmos:0.07368585,Azure.Identity:0.052820142'

azure-sdk avatar Sep 21 '22 14:09 azure-sdk

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Sep 21 '22 15:09 ghost

Hi @exegonzalez thanks for the question, I will pass this off to @turalf

l0lawrence avatar Sep 21 '22 15:09 l0lawrence

@exegonzalez Apologies for the late reply. Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.

navba-MSFT avatar Oct 19 '22 03:10 navba-MSFT

@exegonzalez AFAIK, this is not available now. However, This ask has been tracked here https://github.com/Azure-Samples/communication-services-dotnet-quickstarts/issues/51 So please track the status updates there.

navba-MSFT avatar Oct 19 '22 04:10 navba-MSFT