That is why you need to use the ASP.NET way of doing this, as already mentioned you can use a loop, to send it to all of the recipients, the only single message. For example
foreach (var recipient in recipients) {
}
This is an example code which can be implemented as follows,
var recipients = {"array@example.com", "ofrecipients@example.com"};
foreach (var recipient in recipients) {
WebMail.Send(to: recipient,
subject: "Subject of the Email",
body: "The message of the email."
);
}
Once this ends, the emails would be send to the users, in the list or array that you will pass to the loop. In the loop,
to
field is a variable and depends on the value passed by the loop.
You can learn how to send emails using ASP.NET WebMail class from an article I wrote back a few months,
Sending Emails Easily Using ASP.NET Helpers[
^]
Alternate way
There is another way, of doing this, that is to attach a BCC (Blind Carbon Copy) to the email this would not reveal the recipient's information to other recipients, but will not be a good way, since you don't know how many email recipients you might have and so on. So using a loop and passing values of email address of the recipients will be a better bid for this.