.
HCLSoftware Business Partner
Domino Consulting Services
CRUCIAL Notes Tools
+1
212-599-2048
Domino Consulting Services
CRUCIAL Notes Tools
Domino administration
Notes development
Chat now
.
EN - English
CN - 中文
JP - 日本語
DE - Deutsch
FR - Français
BR - Português
RU - Pу́сский
IT - Italiano
IN - हिन्दी
ES - Español
KR - 한국어
ID - Indonesia
NL - Dutch
TR - Türkçe
SA - العربية
SE - Svenska
NO - Norsk
PL - Polski
TH - ไทย
DK - Dansk
MY - Malay
PH - Filipino
GR - Ελληνικά
FI - Suomi
IL - עברית
IE - Gaeilge
CZ - Čeština
UA - Українська
RO - Română
VN - Tiếng Việt
BD - বাংলা
HU - Magyar
Need a Domino Consultant? Call NotesMail +1 212-599-2048
-
HCLSoftware Business Partner
LOTUSSCRIPT/COM/OLE CLASSES
Examples: OpenMailLog method
1. This agent script opens up a mail log. When the Close method is called, the mail memo gets sent to Thalia Ruben, with "Here's the Linguist Log" in the Subject. Actions and errors are in the Body of the memo.
Sub Initialize
Dim currentLog As NotesLog
Set currentLog = New NotesLog( "Linguist Log" )
Call currentLog.OpenMailLog _
( "Thalia Ruben", "Here's the Linguist Log" )
'...log some actions and errors...
currentLog.Close
End Sub
2. This agent script opens up a mail log that gets sent to the owner of the current agent. For example, if Susanna Tallan owns the Archiving Agent in the Project Histories database, the memo gets sent to Susanna, with "Archiving Agent in Project Histories" in the Subject. Actions and errors are in the Body of the memo.
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim agent As NotesAgent
Set db = session.CurrentDatabase
Set agent = session.CurrentAgent
Dim currentLog As NotesLog
Set currentLog = New NotesLog( agent.Name )
Call currentLog.OpenMailLog _
( agent.Owner, agent.Name & " in " & db.Title )
'...log some actions and errors...
Call currentLog.Close
End Sub
See Also
OpenMailLog method
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Feedback on
Help
or
Usability
?
Help on Help
All Help Contents