sendgrid-csharp: BCC not working from https://app.sendgrid.com/settings/mail_settings

Issue Summary

When I add an email address to the BCC in the https://app.sendgrid.com/settings/mail_settings it does not send an email to the BCC.

Steps to Reproduce

  1. Add BCC email
  2. Send email post through API v3
  3. Email is sent to primary
  4. Email is not sent to BCC

Any other information you want to share that is relevant to the issue being reported. Especially, why do you consider this to be a bug? The SendGrid support rep told me that I should post here. They said that everything we are doing looks correct.

What do you expect to happen instead? BCC the email address in the BCC field in the SendGrid mail settings.

Technical details:

  • sendgrid-nuget Version: 9.9.0
  • Platform .NET Core 2.0
  • Sendgrid API version 3
            var client = new SendGridClient(_apiKey);
            var sendGridFrom = new SendGrid.Helpers.Mail.EmailAddress(from.Email, from.Alias);
            var sendGridTo = new SendGrid.Helpers.Mail.EmailAddress(to.Email, to.Alias);
            var msg = MailHelper.CreateSingleEmail(sendGridFrom, sendGridTo, subject, stringContent, htmlContent);
            var MailSettings = new MailSettings();
            MailSettings.SandboxMode = new SandboxMode();
            MailSettings.SandboxMode.Enable = _isSandbox;
            msg.MailSettings = MailSettings;
            Response response = await client.SendEmailAsync(msg);
            if(((int)response.StatusCode) >= 400) throw new Exception(await response.Body.ReadAsStringAsync());

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 1
  • Comments: 19 (9 by maintainers)

Most upvoted comments

Hi @cfloydcorelogic,

Thank you for taking the time to share your issue with us. I have added this to our backlog for review.

In the mean time, you might want to try sending the email directly using our interactive docs or cURL to help determine whether this is a library issue.

With Best Regards,

Elmer