How to define a Content Id on an attachment using azure-communication-email?
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.
Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Storage:0.09620004,Cosmos:0.07368585,Azure.Identity:0.052820142'
Thank you for your feedback. This has been routed to the support team for assistance.
Hi @exegonzalez thanks for the question, I will pass this off to @turalf
@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.
@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.