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.
How do I add email addresses to my ASP mailer code?
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%26lt;=array.length; i++)
{
mailer.To = array[i]
send.....
}
or do it with a database connection.
while(dr.Read())
{
mailer.To = dr["email].ToString();
send.....
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment