Hallo Remo und Dirk,
klar MailSenden hab ich vergessen. Hier der Code
Function MailSenden()
Set docM = db.CreateDocument
Set item = docM.GetFirstItem( "SendTo" )
docM.Form = "Appointment"
docM.AppointmentType = "3"
docM.EnterSendTo = user
docM.SendTo = user
docM.RequiredAttendees = user
docM.AltRequiredNames = user
docM.tmpRequiredAttendees = user
docM.Subject = tmpSubject
docM.Location = tmpOrt
docM.Body = tmpBody
Set rtitem = New NotesRichTextItem( docM, "Body" )
Call rtitem.AppendText( tmpBody )
Call rtitem.AddNewLine( 2 )
Call rtitem.AppendText( "Dokumentverknüpfung: " )
Call rtitem.AppendDocLink ( docA, tmpSubject )
docM.StartDateTime =Cdat(AnfangD & " " & AnfangZ)
docM.EndDateTime =Cdat(EndeD & " " & EndeZ)
docM.StartDate = Cdat(AnfangD)
docM.EndDate = Cdat(EndeD)
docM.StartTime =Cdat(AnfangZ)
docM.EndTime = Cdat(EndeZ)
DocM.~$PublicAccess = "1"
docM.CalendarDateTime =Cdat(AnfangD & " " & AnfangZ)
Call docM.ComputeWithForm( False, False )
Call docM.Save( True, True )
If (user(0) <> "") Then
Call docM.Send( False, Einlad )
End If
Call docM.Save( True, True )
End Function
Danke und Gruss