Solved

How do I send multiple persons mail using Sendto

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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