I recently upgraded a Domino Server from 8.0.2 to 8.5.1 and since I did the upgrade I am getting the following error:
On the Domino Server Log:
27/11/2009 09:06:31 AM Invalid arguments
27/11/2009 09:06:31 AM MIME to CD error (Process: Agent Manager (000014D0:00000002), Database: E:\Lotus\Domino\data\E6\ControlledActions.nsf, Note: 000A375A): Invalid arguments
27/11/2009 09:06:31 AM End MIME to CD Conversion (Process: Agent Manager (000014D0:00000002), Database: E:\Lotus\Domino\data\E6\ControlledActions.nsf, Note: 000A375A)
On the browser I get the following error:
"Error 4547 - Character set is not recognized "
The code fails on:
Call bodyChild.SetContentFromText (stream, “text/html;charset=ISO-8859-1”, ENC_NONE)
The code fragment I am using is:
Set mailMemo = BaseApp.Database.CreateDocument
With mailMemo
.Form = "Memo"
.InheritedDBTitle = BaseApp.Database.Title
Set SendTo = mailMemo.ReplaceItemValue( "SendTo", mailAddressList.Values)
End With
BaseApp.session.ConvertMIME = False ’ Do not convert MIME to rich text Set stream =
BaseApp.session.CreateStream
Set body = mailMemo.CreateMIMEEntity
Set stream = BaseApp.session.CreateStream
Call stream.WriteText(||)
… other code to build the body
Set bodyChild = body.CreateChildEntity()
’ Fails here !!!
Call bodyChild.SetContentFromText (stream, “text/html;charset=ISO-8859-1”, ENC_NONE)
Call stream.Close
Call stream.Truncate
BaseApp.session.ConvertMIME = True