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.
you can separate emails with a comma.
example:
To = "[email protected], [email protected], [email protected]";
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();
Comments
you can separate emails with a comma.
example:
To = "[email protected], [email protected], [email protected]";
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.....
}