AboutPaski K. Paskaradevan Expertise I have 3 + years in Lotus Notes application development. I am a CLP R5 Application Development. I can answer any question pertaining to application development.
Experience R5 CLP. In addition, I have a bachelors degree in Engineering and a MBA.
Question I need to forward emails to my boss blackberry. I got this script from the internet. It works fine but my boss needs to know who got a copy of this email(sendto, copyto, bcc)
How can I add this to the body/subject. I dont know anything about lotus script only copy and paste. Thks
Sub Initialize
Dim session As NotesSession
Set session = New NotesSession
Dim db As notesdatabase
Dim Maildoc As notesdocument
Set db = session.CurrentDatabase
Dim doc As NotesDocument
Set doc = session.DocumentContext
Set Maildoc = New NotesDocument( db )
Call doc.CopyAllItems( Maildoc, True )
Maildoc.From = doc.From(0)
Maildoc.Principal = doc.From(0)
Maildoc.SendTo = "address"
Maildoc.CopyTo = ""
Maildoc.BlindCopyTo = ""
Call Maildoc.Send(True)
End Sub
Answer Hi,
You are copying All items from the mail so it is taking the copyto and blindcopyto details as well and including it while sending to blackberry. Your boss should be able to see that information in his mail.
If you want to include these in the body of the mail, then you will need to know how to get at the content in the body, append the information from the copyto and blindcopyto fields in the mail and then send it. You cannot use copytoallitems to achieve this.
This is advanced programming.
If you want to try, you will need to look up the notesrichttextitem class in the designer help and write the code.
If you want to add these to the subject, then you need to get the copy to information from the EnterCopyTo field in the memo. Blind copy info from the EnterBlindCopyTo field from the memo. Then add this to the Subject field using maildoc.Subject = doc.Subject(0) + the field values. The problem is that if there are multiple names in the copyto and blindcopyto fields, then you will need to convert them to a list and then add them.
If you do not know anything about lotus script, this will be a very daunting task. I suggest you contact your application developer.