This tutorial will show you how to send a simple email message with CCs and BCCs using ASP.NET 2.0 and C#.NET

Sending a email with CCs and BCCs using ASP.NET 2.0 and VB.NET is actually very simple.

First, you will need to import the System.Net.Mail namespace.

The System.Net.Mail namespace contains the SmtpClient and MailMessage Classes that we need in order to send the email and specify the CCs.

We use the btnSubmit_click event to do the work.

We then call the emailClient.Send to send the message using the variables from our ASP.NET coded page. We use the CC and Bcc methods to add the emails we would like to CC to.

The front end .aspx page looks something like this:

The flow for the code behind page is as follows.

Download Source Files