Examples: SaveMessageOnSend property

  1. This script sets the SaveMessageOnSend property for NotesDatabase object doc to True:
    Dim doc As NotesDocument
    '...set value of doc..
    doc.SaveMessageOnSend = True
  2. This example creates, mails, and saves a new document in the current database. The document Form is set to Main Topic so that the document displays properly in the database; the form is also mailed along with the document so that the document displays properly in the recipient's mail database.
    Dim session As New NotesSession
    Dim db As NotesDatabase
    Dim doc As NotesDocument
    Set db = session.CurrentDatabase
    Set doc = New NotesDocument( db )
    doc.SaveMessageOnSend = True
    doc.Form = "Main Topic"
    doc.Subject =  _
    "Here's a new document that's going to be saved and mailed."
    Call doc.Send( True, "Carl Pycha" )