Mail format get disturbed in backend creation

Hi,

I have one problem. Whenever i create memo/mail using code in the backend. Its format get disturbed, when i receive mail on hotmail or yahoo.

but when i view that saved mail(sent mail) its formattting is intact. Now if i send that mail again in the GUI (front end like sending memo from your mail box). I receive the mail in formatted form.

Why it is happening this… Is anyone have the clue or sample code…

Thanks.

Imtiaz