call rtitem.RenderToRTItem(doc)@glombi,Indirekt mittels
öh, hab ich das ?
Sub Initialize
'Deklaration der Objekte
Dim session As NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Dim maildoc As NotesDocument
Dim rtitem As NotesRichTextItem
'Dim success As Variant
'Setzen der Objekte
Set session = New NotesSession 'Öffne Notes Session
Set db = session.CurrentDatabase 'Hole aktuelle Datenbank
Set dc = db.UnprocessedDocuments 'alle Dokumente, die der Agent-Auswahl entsprechen, hier gewählte Dokumente
'Abbruch, falls kein Dokument gewählt wurde
If dc.Count = 0 Then Exit Sub
'Iteriere über alle Dokumente der Collection
Set doc = dc.GetFirstDocument
Do While Not (doc Is Nothing)
'Erstelle Mail
Set maildoc = db.CreateDocument
'Setze Felder
maildoc.SendTo = "UserHelpDeskIT"
maildoc.Subject = "SAP+~Sonstige Probleme ~ ~"
'Setze Maske
maildoc.Form = "SAP-Call"
'Kopiere Dokument in Rich Text Feld Body des Mail
Set rtitem = New NotesRichTextItem(maildoc,"Body")
' success = doc.RenderToRTItem(rtitem)
Call doc.RenderToRTItem(rtitem)
'Sende Mail (Maske nicht im Dokument speichern)
Call maildoc.Send(False)
'Gehe zum nächsten Dokument
Set doc = dc.GetNextDocument(doc)
Loop
End Sub