find and solve ||
Please wait.....

Adding Bcc and CC Email sending using .NET SmtpClient

x Adding Bcc and CC Email sending using .NET SmtpClient

Sending Emails With Bcc and CC Using ASP.Net Core. To add a CC and BCC recipient to an email message, create a MailAddress for the recipient's address and then add that object to the collection returned by the CC and BCC property.


  • Active internet connection.
  • Email id of any provider such as Gmail, Yahoo, or your organization to send emails.

We learned how to send emails in ASP.Net core with CC and BCC. Hope this source code is useful for all beginners students and developers. If you have any suggestions related to this article then please contact with us.

In this source code, we will learn how to send emails from an ASP.Net Core web application with BCC and CC. 

To send Emails in ASP.Net, the following namespaces must be added in your class or controller as given below.

using System.Net.Mail;  

using System.Net;

Get all credentials from appsetting.json as given below.

  "EmailConfiguration": {
    "SmtpServer": "",
    "SmtpPort": 25,
    "SmtpUsername": "[email protected]",
    "SmtpPassword": "your-password-here",
    "Name": "your mail name",
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
  "AllowedHosts": "*"
Mahira  khanna

Mahira khanna

I have the skills you need for you company blog, website, or other content materials


Report Response