Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How do I add 2 fields in a doc.CopyTo or doc.SendTo statement when sending an email within lotusscript?

Posted on 2004-08-26
2
Medium Priority
?
952 Views
Last Modified: 2013-12-18
I have a form that sends out email notifications and I want to add mutiple fields to the "CopyTo" assignment.  His a piece of my code:

########################################
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim uiDoc As NotesUIDocument
Dim ws As New NotesUIWorkspace
Set db = session.CurrentDatabase
Set doc = source.Document
Set uiDoc = ws.CurrentDocument

Dim emailDoc As NotesDocument  
Set emailDoc = db.CreateDocument  
emailDoc.Form = "Memo"
emailDoc.Subject = "Travel Approved"

'...Set up body of email...
Dim rtitem As NotesRichTextItem
Set rtitem = emailDoc.CreateRichTextItem("Body")
Call rtitem.AppendText("Hi " + doc.DocAuthor(0) + ", ")
Call rtitem.AddNewLine(1)
Call rtitem.AppendText("   -->  Click on this DocLink to view the request:   ")
Call rtitem.AppendDocLink( uidoc.Document , "Link to Document" )
Call rtitem.AddNewLine(2)
Call rtitem.AppendText("NOTE:  This is an automated reply")

emailDoc.SendTo = doc.DocAuthor
emailDoc.CopyTo = doc.CCperson  '...Here is where I want to also add doc.Approver which contains another email address ...
emailDoc.Send False
###################################

I have tried the following statements without success:

emailDoc.CopyTo = doc.CCperson + doc.Approver
emailDoc.CopyTo = doc.CCperson & doc.Approver

Any help would be greatly appreciated....Thanks.
0
Comment
Question by:ttennant
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 400 total points
ID: 11906946
try this

emailDoc.CopyTo = ArrayAppend(doc.CCperson,doc.Approver)

~Hemanth
0
 

Author Comment

by:ttennant
ID: 11907017

Thanks Hermanth....worked like a charm.  I thought this would be an easy one.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question