I have this script agent that runs in a WebQuerySave.It will not sent to multiple recipients, only to the first address. Does anyone know how to get this to send to multiple mail addresses?
memo_doc.SendTo = ksapeta@mail.com; jmorgan@yahoo.com
I have this script agent that runs in a WebQuerySave.It will not sent to multiple recipients, only to the first address. Does anyone know how to get this to send to multiple mail addresses?
memo_doc.SendTo = ksapeta@mail.com; jmorgan@yahoo.com
Subject: SendTo multiple recipients
memo_doc.SendTo = Split(“ksapeta@mail.com; jmorgan@yahoo.com”,“,”)
Subject: SendTo multiple recipients
have you searched this forum for a solution? Been asked many times. Search and you will find many answers.
One way
Dim recipients (1 to 2)
recipients(1) = “ksapeta@mail.com”
recipients(2) = “jmorgan@yahoo.com”
memo_doc.SendTo = recipients
Subject: RE: SendTo multiple recipients
Paul, thank you it worked great. And yes, I really did search the forum before posting the question. I just didn’t get the right hits. I guess I used the wrong search terms.Thanks for your help!
Subject: RE: SendTo multiple recipients
If you only want to append new names to an existing list :
Dim recipients (1 to 2)
recipients(1) = “ksapeta@mail.com”
recipients(2) = “jmorgan@yahoo.com”
memo_doc.SendTo = ArrayUnique(ArrayAppend(memo_doc.SendTo, recipients))
ArrayUnique will prevent names to be present multiple times inside the list.