How to read and send the content of word document including image as same as in the
word document and send as a html mail to the recipient.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Alex SmithPosted Jul 10, 2015, 3:49 AM
Zain BarterPosted Jul 9, 2015, 11:17 AM
In both cases, parsing word document and then try to write the HTML elements (tags) would be rather waste of time and the overall display might not be good.
You could try LEADTOOLS library that has the ability for loading word documents and saving HTML file. see this link:
http://demo.leadtools.com/clickoncedemos/V19/CSDocumentConverterDemo/default.htm
Now you can either send the result as attachment in the email, or you can read the HTML file content and then create email with that content.
See the following help about how to generate HTML email:
http://stackoverflow.com/questions/886728/generating-html-email-body-in-c-sharp