ersetze mal die Funktion SPOOFMESSAGEWITHITEM durch folgeneden Code ( experimentell)
Function SpoofMessagewithitem( sendas As String, sendto As Variant, CopyTo As Variant, subject As String, message As String , itembody As notesrichtextitem) As Integer
On Error Goto ERRHANDLE
Dim session As New NotesSession
Dim item As NotesItem
Dim mailbox As New NotesDatabase("","")
Dim current As NotesDatabase
Dim maildoc As NotesDocument
Dim rtitem As NotesRichTextItem
Dim me_item As NotesItem
Dim ok As Integer
SpoofMessagewithitem = True
Set current = session.CurrentDatabase
Call mailbox.Open( current.server, "mail.box" )
Set maildoc = mailbox.CreateDocument
Set item = maildoc.ReplaceItemValue("Form","Memo")
Set item = maildoc.ReplaceItemValue("From", sendas)
Set item = maildoc.ReplaceItemValue("Subject", subject)
Set item = maildoc.ReplaceItemValue("SendFrom", sendas)
Set item = maildoc.ReplaceItemValue("SendTo", sendto)
Set item = maildoc.ReplaceItemValue("CopyTo", copyto)
Set item = maildoc.ReplaceItemValue("Recipients", sendto)
Set rtitem = maildoc.CreateRichTextItem( "Body" )
If message <> "" Then
Call rtitem.AppendText( message )
End If
Call rtitem.appendrtitem(itembody)
Set item = maildoc.ReplaceItemValue("PostedDate", Now())
Set item = maildoc.ReplaceItemValue("ComposedDate", Now())
Set item = maildoc.ReplaceItemValue("DeliveredDate", Now())
Set item = maildoc.ReplaceItemValue("Principal", sendas) '
'maildoc.EncryptOnSend = False
Call maildoc.Save( True, False )
EXITPOINT:
Exit Function
ERRHANDLE:
SpoofMessagewithitem = False
'If UseOpenLog Then
'Call LogError
'End If
Print Getthreadinfo(LSI_THREAD_PROC) & ": " &Trim$(Str$(Err)) & " on line " & Cstr(Erl) & ": " & Error$
Resume EXITPOINT
End Function
´
ich weiss, der doclink zur Antwort fehlt noch ... liefere ich nach sobald die Sonne weg ist
oh, dumme Frage, hast du eigentlich Designer Rechte ??