Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8063857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:10:51+00:00 2026-06-05T11:10:51+00:00

I am trying to create emails for my users using EWS Managed API 1.1,

  • 0

I am trying to create emails for my users using EWS Managed API 1.1, and need to use email templates our designers have created. I was able to successfully attach image (say header.png) and add an image tag like this (using cid: before the image name) in the html body.

<img width=683 height=27 src="cid:header.png" alt="Header">

This works when I use msg.SendAndSaveCopy() method. It renders perfectly fine in both Sent Mail folder and the recipients inbox. However it is not working when I try to use msg.Save() method just to save it as Draft in Drafts folder. It shows images as plain attachments and the body doesn’t show images inline. They don’t render properly even if I hit send in outlook. I am wondering if I need to do anything special to have these images rendered correctly in outlook Drafts folder.

Any pointers/ help will be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T11:10:53+00:00Added an answer on June 5, 2026 at 11:10 am

    Microsoft provided a workaround today to address this issue. Posting the solution for the benefit of the community

          string html = @"<html>
                     <head>
                     </head>
                     <body>
                        <img width=200 height=100  id=""1"" src=""cid:Desert.jpg"">
                     </body>
                     </html>";
    
            newMessage.Body = new MessageBody(BodyType.HTML, html);
            string file = @"D:\Tools\Desert.jpg";
            newMessage.Attachments.AddFileAttachment("Desert.jpg", file);
            newMessage.Attachments[0].IsInline = true;
    
            //this is required to fix the issue - Add content id programatically
            newMessage.Attachments[0].ContentId = "<Desert.jpg>";
    
            newMessage.Save();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our organization we are trying to use EWS Managed API to access mailboxes
I'm trying to create a regular expressions that will filter valid emails using PHP
I am trying to use the System.Net.Mail.MailMessage class in C# to create an email
We are currently sending emails to users asynchronoulsy using the ThreadPool. Essentially, we have
I am trying to create a PHP page for users to send emails to
I'm trying to create a Email to friend page using php. The objective of
I am trying to send an email to multiple users. I have a model
I am trying to create & save images from data in an email from
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
Ok so I am trying create a login script, here I am using PHP5

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.