I have an Notes database with a form action that uses the ‘RenderToRTItem’ method to send an image of the current document in a mail memo as follows:
Set uidoc = workspace.CurrentDocument
Set docA = uidoc.Document
Call maildb.OpenMail
Set mailDoc = New NotesDocument( maildb )
Set rtitem = New NotesRichTextItem( mailDoc, “Body” )
success = docA.RenderToRTItem( rtitem )
If the memo is received by someone without a Notes client, they’ll see an incorrect format in the memo unless it was sent in a ‘MIME Format’. It’s not feasible for all of the database users to have ‘MIME Format’ defined in their Location documents and so I would like to set it programmatically. This would include the following code:
Dim body As NotesMIMEEntity
Set body = mailDoc.CreateMIMEEntity
This code causes an error however since ‘CreateMIMEEntity’ requires a string and uses ‘Body’ by default. However, ‘Body’ is defined as rich text so that the ‘RenderToRTItem’ method can be applied.
I’d appreciate any ideas on how to create a memo in MIME format under this scenario.
Thanks.