I have aword doc and i need to send it as an inline attachment.
I tried doing as the inline attachment but unable to achieve it. I am able to have an image as inline attachment but fail with a word doc
I also tried to save the doc as .mht file . Is there a way i can send .mht file through mail?Body of the mail?
My word doc contains images and lots of formatting
I tried to open word doc and then copy data to clipboard and then get the data from clipboard in html format but i get some junk data too... Like it doesnt recognize tab and adds some A^ instead of tabs and all taht.
Loading
Kapil Deo MalhotraPosted Jun 14, 2010, 3:18 PM
I have similar application which sends the mail as HTML Body. I did not get any good way to send the .doc as inline, so i save the doc file in HTML. Open that file in editor. copy the text and paste in your text field and pass that value to HTML Body.
For me it is working fine. There is another way, you can attach the .html or .mht file, before sending the mail, upload the file to server and read the HTML file. After reading the HTML content pass to HTML Body property of MailMessage class.