none
Image Url In email being stripped out in outlook while send mail to Outlook RRS feed

  • Question

  • Hi, 

    I have to embed image as signature in Email body via office AddIn and send mail to outlook client but i am facing issue that outlook client user is not able to view the image in email body and it's being stripped out.

    Regards

    Saurabh

    Wednesday, March 8, 2017 10:40 AM

All replies

  • I am using  Office.context.mailbox.item.body.prependAsync method for appending body of email but still no luck ;)

    Wednesday, March 8, 2017 10:44 AM
  • Hi,

    Could you share us related code and a screen shot of receiver email? I made a test with below code, it shows image correctly at receiver side.

      function addImg()
      {
          Office.context.mailbox.item.body.prependAsync(
              '<img src="https://www.w3schools.com/html/pic_mountain.jpg" alt="Show Image" style="width:304px;height:228px;">',
              { coercionType: Office.CoercionType.Html },
              callback);
      }

    I suggest you check whether the receiver could access the image url.

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, March 10, 2017 8:15 AM