Hi,
I am looking for examples on how to add recipients (both To and CC) via scripting... as these will be defined in a database..
I can see that it is possible somehow, but would like to be able to do it.. :-)
HH
Hi,
I am looking for examples on how to add recipients (both To and CC) via scripting... as these will be defined in a database..
I can see that it is possible somehow, but would like to be able to do it.. :-)
HH
You can either do them one-by-one, eg:
Action.RecipientsList.Add(“Fred Nurk","freddy@nurk.com”);
Or as a list, eg:
Action.RecipientsList.AddDelimitedList("freedy@nurk.com,joe@blow.com",",");
Or from a file:
Action.RecipientsList.AddFromFile(“C:\temp\myemaillist.txt”);
To add as CC’s, use Action.CopyToList instead.