Weird behaviour of "Notice" and "Memo" form

Hi,

I am facing one trouble while sending the content of RICH text field.

Case I:

Set MemoDoc=db.CreateDocument

MemoDoc.Form=“Notice”

'… 'Setting other fields and recipients

'…'Calendar info

'…

'PendingDoc is the doc from where I need to copy the content of RICH text field “Body” to the MemoDoc

Set RTItem=PendingDoc.GetFirstItem(“Body”)

Call RTITem.CopyItemToDocument(MemoDoc,“Body”)

call MemoDoc.Send(false)

’ The above code works fine…and most wonderful this is that it keeps the contents of RICH text field “Body” as is…like a hyperlink, pasted graphics, formatted text and attachments too…The alignment and everything remains AS IS…Which is really a good part.

It works even while sending mail outside domain.

'////////////////

Case II:

'However, the moment I change the form name to “Memo”, the contents of RICH text field gets lost.

The pasted BMP, graphics comes in an attachment.

The formatted BOLD, ITALIC text becomes plain text and it does not work the way it works with “Notice” form.

Set MemoDoc=db.CreateDocument

MemoDoc.Form=“Memo”

'… 'Setting other fields and recipients

‘…’

'PendingDoc is the doc from where I need to copy the content of RICH tech field “Body” to the MemoDoc

Set RTItem=PendingDoc.GetFirstItem(“Body”)

Call RTITem.CopyItemToDocument(MemoDoc,“Body”)

call MemoDoc.Send(false)

'////////////////////////////

'I tried using setting the property of RICH text field in the 2nd tab. Store content as HTML and MIME. PLEASE help on why the behavior of RICH text changes when the form name changes ?

It does not work while sending mail outside domain.

Subject: What happens if…

you assign the form name AFTER the Body field is copied across (I’m assuming the same behaviour)Have you checked your Body field on the Memo form to make sure it hasn’t been changed in some way from the mail default?

Subject: Oh, and I assume you checked…

…that your Body field has ‘store contents as HTML and MIME’ checked?

Subject: I verified…

yeah, I have checked that part…