I think this is probably a very simple question but I just couldn't find the solution!
I have a procedure that handles sending emails.
It currently only handles a single email recipient.
I want to extend it to handle multiple recipients.
I've worked out how you add email recipients to the MailMessage.To collection so now I want to modify my send email procedure to be able to incorporate this.
i.e. it needs to have a 'to' parameter that holds multiple 'name', 'emailAddress' items
I tried this with a Collection but couldn't make it work!
Ideally I'd like two procedures, one that takes a single email and the other that handles multiples
The calling procedure passes the name, emailAddress pairs somehow (array?, collection?) and the sendEmail procedure takes care of the details.