-1

is there way to show exact preview of outlook email body in a windows form using office dlls and outlook plugin ?
it can be achieved using web-browser control by getting the body content.
but i need to show exact same preview such as new outlook explorer without elements other than the body content

enter image description here

DevÁsith
  • 1,072
  • 12
  • 38
  • What have you tried? What language/framework are you using? Why do you need to replicate native outlook functionality in an outlook add-in?! Why not build your extension onto the existing outlook email viewer? – sasfrog Feb 08 '19 at 21:29
  • @sasfrog as mentioned embedding a webbrowser into winform/wpf is a one solution. there are circumstances to show preview of recipients email before sending. Ex- mail merge – DevÁsith Feb 09 '19 at 17:37

1 Answers1

0

Yes, it is possible. Most probably you will have to edit the HTML markup a bit before displaying it in the web browser. For example, a web browser doesn't understand embedded attachments displayed in the body (see for the cid: attribute in img elements).

Note, Outlook still uses Word for displaying the message body. Read more about

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45