Solved

How do I send multiple persons mail using Sendto

Posted on 2003-11-12
6
281 Views
Last Modified: 2013-12-18
I want to send a similar note to three users. I've used SendTo to send to one user:

doc.sendto = "Martin Short"

What about more than one person?
0
Comment
Question by:hrogers
6 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 84 total points
ID: 9735729
Like this

Dim sendList(1) as string

sendList(0) = "Martih"
sendList(1) = "Short"

doc.SendTo = sendList

~Hemanth
0
 
LVL 19

Assisted Solution

by:madheeswar
madheeswar earned 83 total points
ID: 9736374
Method 1:
If u want to hard code ur user names

dim arr(2) as string

arr(0)="user1Name"
arr(1)="User2Name"
arr(2)="user3name"

doc.sendTo=arr

Method 2:
If u have a list of users in a multi value field

dim item as notesitem
set item=doc.GetFirstitem("urNamelistfield")

for x=0 to UBound(item.values)
call maildoc.Send(True,item.values(x))
next

If u need more help, let us know.

Hope it helps.
0
 
LVL 31

Assisted Solution

by:qwaletee
qwaletee earned 83 total points
ID: 9736580
You can also use AppendTotextList...

Dim sendTo as notesItem
Set sendTo = doc.replaceItemValue("SendTo","first addressee")
sendTo.appendTotextList "second addressee"
sendTo.appendTotextList "third addressee"

This takess a little less effort than setting up an array first, especially of you change the number of elements later.  But it isn't a big difference, and they both work equally well.

Another method:
Dim sendTo as variant
sendTo = Evaluate({@Explode("first address,second address,third address";",")}
doc.sendTo = sendTo
0
 
LVL 9

Expert Comment

by:Arunkumar
ID: 9738890
have a multi-value field as suggested before and simply have....

doc.SendTo = doc.Multi-ValueFieldName

:-(
Arun.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

932 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now