Hello, I have to write a script to send encrypted emails to users in same domain. I have tried everything in designer help. When I send email via below code, it does sets the encrypt flag to “1” and also shows that email is encrypted in Inbox. However, everyone is able to read it and not just the person listed in ‘SendTo’ field.
Could someone let me know if I am doing something wrong.
Code
==========================
Dim session As New NotesSession
Dim Encryptitem As Notesitem
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim rtitem As NotesRichTextItem
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
doc.Form = “Memo”
doc.SendTo = “ABC”
doc.CopyTo = "EFG "
'…set value of doc…
Set rtitem = New NotesRichTextItem ( doc, “Body” )
Call rtitem.AppendText ( “Email txt”)
doc.Subject = “Here’s the document you wanted”
Set Encryptitem = New NotesItem ( Doc, “Encrypt”, “1” )
Encryptitem.IsSummary = True
doc.EncryptOnSend = True
Call doc.Send( False )
============================