Mail format gets disburbed in backend memo creation

Hi,

I have been facing one problem, if any body can help me out…

when i compose memo in the backend using code and send, when mail arrives on the yahoo or hotmail account, it formatting gets disturbed. But when i send mail memo in UI (front end) like sending mail from your mail box, i receive the mail in the same format on the internet (yahoo or hotmail).

Note: i have set the MIME Setting and enabled richtext formatting etc in the code, but still facing problem when i compose mail in BACKEND.

=========

Sample code

Dim workspace As New NotesUIWorkspace

Dim session As New NotesSession

Dim db As NotesDatabase

Dim cdoc As NotesDocument

Dim memo As NotesDocument

Dim crt As Variant



Set db=session.currentdatabase

Set view = db.GetView("MailView" )

Set cdoc = view.GetFirstDocument

	

While Not(cdoc Is Nothing)

			

mComp=cdoc.GetItemValue("CompanyName")

Set crt=cdoc.GetFirstItem("Summary")

			

cretdate=Evaluate("@Now")

Set memo = New NotesDocument( db )

memo.Form = "Memo"

		

memo.subject="Subject"

memo.Sendto=cdoc.GetItemValue("Recipient")

				

Dim mStyle As NotesRichTextStyle

Set mStyle = session.CreateRichTextStyle

Dim richText As New NotesRichTextItem(memo, "Body")

	

Call richText.AppendText(" Text1")

Call richText.AddNewLine( 2 )

Call richText.AppendText("Text2")

Call richText.AddNewLine( 2 )

Call richText.AppendText("Text3")

mStyle.bold=True

Call richText.AppendStyle(mStyle)

Call richText.AppendText(MyMonth)

Call richText.AppendText(".")

mStyle.bold=False

Call richText.AppendStyle(mStyle)

Call richText.AddNewLine( 2 )

Call richText.AppendText("Text4")

				

Call memo.Save( True, True)

Call memo.Send(False,True)



End If

Set cdoc=View.GetNextDocument(cdoc)

Wend

			

End If

End If

=====

Note: When i open the send document, formatting is there, which it creates in the backend, but on send, when we receive on yahoo or hotmail account. it bold property and other gets disbured. Can anyone give me clue why it is happening there. Is anything is needed to be changed in lotus notes client or server (already set MIME format in client edit current doc")

Thanks.

Imtiaz