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.