AllExperts > Experts 
Search      

Using Lotus Notes

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Using Lotus Notes Answers
Question Library

Ask a question about Using Lotus Notes
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Paski 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.
 
   

You are here:  Experts > Internet/Online > Email > Using Lotus Notes > forwarding agent

Topic: Using Lotus Notes



Expert: Paski K. Paskaradevan
Date: 12/12/2007
Subject: forwarding agent

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.

Regards.

Paski


Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.