When sending email using the SMTPClient class in ASP.NET C#, how can I add bcc to the email? How can I add bcc to a MailMessage instance?
The SmtpClient class is obsolete in Xamarin. However: It is included in the . NET Standard 2.0 and later versions and therefore must be part of any .
To add a CC recipient, click on the downward arrow on the top right corner in the To address box, as shown below. This will display the CC and BCC fields. In the CC field, enter the mail addresses of the recipients who'll receive a copy of the email. Compose your message and hit Send.
Provide the project a name, such as "SendingEmailsToMultipleRecipients" or another as you wish and specify the location. Then right-click on Solution Explorer and select "Add New Item" - "Default. aspx" page and one class file. Drag and drop three Text Boxes and two buttons.
Bcc stands for blind carbon copy which is similar to that of Cc except that the Email address of the recipients specified in this field do not appear in the received message header and the recipients in the To or Cc fields will not know that a copy sent to these address.
MailAddress addressTo = new MailAddress("[email protected]");
MailAddress addressFrom = new MailAddress("[email protected]");
MailAddress addressBCC = new MailAddress("[email protected]");
MailMessage MyMessage = new MailMessage(addressFrom, addressTo );
MyMessage.Bcc.Add(addressBCC);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With