question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
navba-MSFTcommented, Oct 19, 2022

@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.

0reactions
navba-MSFTcommented, Oct 19, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found