Dear members ,
my application requires to send emails. the email's body needs to have a specific format.
The format and the content is defined in a MS Word document.
i can select and copy the contents of the document into the clipboard. Question is how do i send the data in the clipboard as an email
BY KEEPING the format untouched.
another words, when the Emailee looks at their email, they can see the same document as i will see on my screen in MS WORD.
addition: i am programming in Visual Basic with Visual studio 2008, .NET4
thank you in advance.
Addition:
the Word document contains formatting, pictures, and colors (very standard)
i am using the following sample of code to get the contents
.
aWord.Documents.Open(STR_QUOTE_NAME)
aWord.ActiveDocument.Content.Copy()
sub Email()
message.BodyEncoding = System.Text.Encoding.UTF8
message.Body = ClipBoard.getText
end sub
the issue is that i don't know of a way, to retrieving the data present in the clipboard, so that i could preserve its
original formatting.
doing the above will result in an email received which has little formatting.
what i have realized is that the email parsing platform(such as yahoo, hotmail , etc) will look at the header and
parse the email according to the header's Content-Type: