How to define a Content Id on an attachment using azure-communication-email?
See original GitHub issueI 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.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to define a Content Id on an attachment using azure ...
I need to add an image in base64 format as an attachment and define a Content Id to reference it in an <img...
Read more >How to send an email using Azure Communication Service
EmailAttachment, This class creates an email attachment by accepting a unique ID, email attachment type, and a string of content bytes.
Read more >Azure.Communication.Email 1.0.0-beta.1 - NuGet
To send an email message, call the Send or SendAsync function from the EmailClient . // Create the email content var emailContent =...
Read more >Does the presence of a Content-ID header in an email MIME ...
The Content-ID does not indicate that a image should be displayed inline. This header is needed to reference the embedded data within HTML....
Read more >Attachments and Content Identifiers in MIME Messages
Each MIME body part has an optional Content Identifier (CID) used to identify it. The Content Id is part of the MIME part...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
@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.