Requirement:
A company disclaimer is required to be added to all the Emails sent across the organization and outside using SmartCloud Notes Client and iNotes.
Challenge:
SmartCloud Notes doesn’t support functionality of Message Disclaimer.
Solution:
This solution is a work around and not really a Cloud based integration.
We’ll be using a LotusScript Agent to modify the Mail Signature for Notes Client, iNotes – Plain Text and iNotes – Rich Text and append the Disclaimer for all users.
Assumption:
The Administrator has access to all the MailFiles in SmartCloud Notes via Template Modification.
Code:
Option Public
Option Declare
Const DISCLAIMER = |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Disclaimer :
This e-mail and any attachments thereto are intended for the sole use of the recipient(s) named above and may contain information that is confidential and/or proprietary to the ABC Pvt. Ltd. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication, or dissemination in any form) by persons other than the intended recipient(s) is prohibited. If you have received this e-mail in error, please notify the sender immediately and delete it.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
Sub Initialize
Dim s As New NotesSession
Dim docP As NotesDocument
Dim db As NotesDatabase
Dim dociNotes As NotesDocument
Set db = s.CurrentDatabase
Set docP = db.GetProfileDocument("CalendarProfile")
Set dociNotes = db.Getprofiledocument("iNotesProfile")
If docP.SignatureInserted Then 'Avoid repeated insert of signature
'Plain Text Signature
docP.Signature_1 = docP.Signature_1(0) & Chr(10) & DISCLAIMER
'HTML iNotes Signature
dociNotes.HTMLSignature = dociNotes.HTMLSignature(0) & Chr(10) & DISCLAIMER
'Notes RichText Signature
Dim rtItem As New NotesRichTextItem(docP, "Signature_Rich")
Call rtItem.appendtext(DISCLAIMER)
docP.SignatureInserted = True
Call docP.Save(True,False)
Call dociNotes.save(True, False)
End If
End Sub
No comments:
Post a Comment