I am trying to automate a mailing system where an edited word document will be mailed to number of people through Lotus Notes.
I am using this following code to do so. This code works fine except it loses all its formatting(e.g. bold, italics, paragraph etc) while it is being sent as a mail.
Set objRange = ob_doc.Content
mailtext = ob_word.CleanString(objRange.Text)
'Create the mail document
Set notesDocument = notesDatabase.CreateDocument
'set to memo format
notesDocument.Form = "Memo"
'Set the subject
notesDocument.Subject = subject
'Set the body
Set notesRichTextItem = notesDocument.CreateRichTextItem("Body")
notesRichTextItem.AppendText(mailtext)
... After doing some research, I tried to convert the word doc to html to keep the formatting intact, but I could not mail that html file as the mail body.