Solved

How do I send multiple persons mail using Sendto

Posted on 2003-11-12
6
279 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 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

13 Experts available now in Live!

Get 1:1 Help Now