wo hast Du die Zeile eingebaut?
Sub Click(Source As Button)
Dim session As New NotesSession
Dim mailbox As New NotesDatabase("","")
Dim rtBody 'As NotesRichTextItem
Dim Auswahl As String
Dim doc As NotesDocumentSet doc = uidoc.Document ' get handle to mail.box on the users current mail server
Set current = session.CurrentDatabase
Call mailbox.Open( current.server, "mail.box" )
' Create a new document in the severs mail box
Set maildoc = mailbox.CreateDocument
Set ws = New NotesuiWorkspace 'Represents the current Notes workspace window.
Set uidoc = ws.CurrentDocument 'Represents the document that's currently open in the Notes workspace.
maildoc.Form = "Memo"
maildoc.From = "Order"
maildoc.SendFrom = "Order"
maildoc.SendTo = uidoc.FieldgetText("email")
maildoc.Recipients = uidoc.FieldgetText("email")
maildoc.Subject = "Bestellung Handy"
Set rtitem = maildoc.CreateRichTextItem( "body" )
Call rtitem.AppendText( "Liebe Kolleginnen und Kollegen," )
Call rtitem.AddNewLine(2)
Call rtitem.AppendText("hiermit wünschen wir uns folgendes Gerät " )
Call rtitem.AddNewLine(3)
Call rtitem.AppendText(doc.Auswahl (0))
Call rtitem.AddNewLine( 2 )
Call rtitem.AppendText( "Mit freundlichem Gruß" )
Call rtitem.AddNewLine( 2 )
Call rtitem.AppendText("IT Services")
Call rtitem.AddNewLine(3)
maildoc.PostedDate = Now()
maildoc.ComposedDate = Now()
maildoc.DeliveredDate = Now()
maildoc.Principal = "IT-Services"
maildoc.EncryptOnSend = False
Call maildoc.Save( True, False )
Call uidoc.fieldsettext ("send_mail", "versendet")
'Call uidoc.save(True,True)
End Sub