SendGridMessage msg = new SendGridMessage(); msg.AddCc("[email protected]");
SendGridMessage msg = new SendGridMessage(); ListIn both examples, we create a new SendGridMessage object, and then use the AddCc (or AddCcs for multiple recipients) method to add one or more email addresses to the CC field of the message. The SendGridMessage class is part of the SendGrid package library for C#. You can install this package using the NuGet package manager.ccs = new List { "[email protected]", "[email protected]", "[email protected]" }; msg.AddCcs(ccs);