Solved

How do I send multiple persons mail using Sendto

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
  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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 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