How to send emails in .NET part 3: multiple recipients, CC and BCC

In this post we looked at how to send a plain text email. Let’s see how we can refine the recipient list of the email message.

The MailMessage object has a To property of type MailAddressCollection. You can add MailAddress objects to this collection if you’d like to send the message to multiple recipients:

MailMessage mailMessage = new MailMessage();
mailMessage.To.Add(new MailAddress(""));
mailMessage.To.Add(new MailAddress(""));
mailMessage.To.Add(new MailAddress(""));
mailMessage.Subject = "subject";
mailMessage.Body = "body";

Similarly, the MailMessage object has a CC and Bcc property of type MailAddressCollection to hold the carbon copy and blind carbon copy recipients of the message. You can add MailAddress objects to those properties the same way as above:

mailMessage.CC.Add(new MailAddress(""));
mailMessage.Bcc.Add(new MailAddress(""));

You can also specify a list of email addresses in a comma-separated string instead of adding MailAddress objects one by one:


Read all posts related to emailing in .NET here.

About Andras Nemes
I'm a .NET/Java developer living and working in Stockholm, Sweden.

2 Responses to How to send emails in .NET part 3: multiple recipients, CC and BCC

  1. Nathan C. Zimmerman says:

    If you want to send mail to someone other than “” to you edit, recompile, republish for each one??

  2. Boyd White says:

    Thanks from northeast Nevada.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Elliot Balynn's Blog

A directory of wonderful thoughts

Software Engineering

Web development

Disparate Opinions

Various tidbits

chsakell's Blog


Once Upon a Camayoc

Bite-size insight on Cyber Security for the not too technical.

%d bloggers like this: