English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I know how to do the "To:", "CC:", and "BCC:", but I want to constantly add email addresses to it. I need to have about 50 so far.

2006-11-29 16:19:27 · 1 answers · asked by Rockstar 6 in Computers & Internet Programming & Design

1 answers

you can separate emails with a comma.
example:
To = "xx@xx.com, yy@yy.com, zz@zz.com";

If you are sending out a mass mailing, you need to add it in a loop.
for(int i=0; i<=array.length; i++)
{
mailer.To = array[i]
send.....
}

or do it with a database connection.
while(dr.Read())
{
mailer.To = dr["email].ToString();
send.....
}

2006-11-29 16:33:00 · answer #1 · answered by comn8u 4 · 0 0

fedest.com, questions and answers