Send to Multiple Ppl using COM object

I have vb code that will send a notes mail message, by creating a notes session, a database and then a document object.  So I have a line like:

doc.SendTo = "Me"

Also the copyto:

doc.CopyTo = "Them"

I realize on the Send command you can specifiy multiple recipients (if you did not specify sendto/copyto.. as above.

How do I use the SendTo and CopyTo attributes in order to send to multiple recipients?

LVL 3
rmichelsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AntonysinghCommented:
Hi rmichels,

use array to pass multiple address to sendto or copyto fields.

for example,

me(0) = "me1"
me(1) = "me2"
me(3) = "me3"

them(0) = "them1"
them(1) = "them2"
them(3) = "them3"

doc.SendTo = me

doc.CopyTo = them

I hope this may solve your problem.

Regards,
Antony.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.