{"action":"created","issue":{"url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/745","repository_url":"https://api.github.com/repos/sendgrid/sendgrid-csharp","labels_url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/745/labels{/name}","comments_url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/745/comments","events_url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/745/events","html_url":"https://github.com/sendgrid/sendgrid-csharp/issues/745","id":363709122,"node_id":"MDU6SXNzdWUzNjM3MDkxMjI=","number":745,"title":"Unable to send multiple emails in BCCs using Sendgrid API for C#","user":{"login":"Muskan-14","id":26456852,"node_id":"MDQ6VXNlcjI2NDU2ODUy","avatar_url":"https://avatars2.githubusercontent.com/u/26456852?v=4","gravatar_id":"","url":"https://api.github.com/users/Muskan-14","html_url":"https://github.com/Muskan-14","followers_url":"https://api.github.com/users/Muskan-14/followers","following_url":"https://api.github.com/users/Muskan-14/following{/other_user}","gists_url":"https://api.github.com/users/Muskan-14/gists{/gist_id}","starred_url":"https://api.github.com/users/Muskan-14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Muskan-14/subscriptions","organizations_url":"https://api.github.com/users/Muskan-14/orgs","repos_url":"https://api.github.com/users/Muskan-14/repos","events_url":"https://api.github.com/users/Muskan-14/events{/privacy}","received_events_url":"https://api.github.com/users/Muskan-14/received_events","type":"User","site_admin":false},"labels":[{"id":733723738,"node_id":"MDU6TGFiZWw3MzM3MjM3Mzg=","url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/labels/difficulty:%20unknown%20or%20n/a","name":"difficulty: unknown or n/a","color":"ffffff","default":false},{"id":850614589,"node_id":"MDU6TGFiZWw4NTA2MTQ1ODk=","url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/labels/status:%20waiting%20for%20feedback","name":"status: waiting for feedback","color":"cccccc","default":false},{"id":24362859,"node_id":"MDU6TGFiZWwyNDM2Mjg1OQ==","url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/labels/type:%20question","name":"type: question","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-25T18:25:01Z","updated_at":"2018-10-04T21:13:17Z","closed_at":"2018-10-04T21:13:17Z","author_association":"NONE","body":"#### Issue Summary\r\n\r\nHi,\r\nI am working on a ASP.NET Core WebAPI where I am using SendGrid to send emails. Earlier, I was able to use the helper class CreateSingleEmail to send a single mail to a single recipient.\r\nNow, I wish to send the same email to multiple recipient in BCC so, the recipients are not able to see the other recipients.\r\nI have gone through many documentation on this issue and even the previous similar issues raised for this but I am still unable to send the mails.\r\nI have tried to use Personalization block too. I do not get any error per se but emails are not being sent through this.\r\nHere is my method-\r\n\r\n               var apiKey = \"MySendgridApiKey\"\r\n                var client = new \r\n                SendGridClient(apiKey);\r\n                var msg = new SendGridMessage();\r\n                msg.SetFrom(new EmailAddress(fromEmail));\r\n                msg.AddTo(new EmailAddress(fromEmail), 1);\r\n                msg.SetBypassListManagement(true);\r\n                msg.SetBccSetting(true, fromEmail);\r\n                msg.AddSubstitution(\"%name1%\", \"Example User1\");\r\n                msg.SetSubject(subject);\r\n                var personalization = new Personalization()\r\n                {\r\n                    Bccs = toEmail  \r\n                };\r\n                msg.AddBccs(toEmail);\r\n                msg.AddBccs(toEmail, 0, personalization);\r\n                msg.Serialize();\r\n                var response = client.SendEmailAsync(msg);\r\n                return true;\r\n\r\n\r\n\r\n\r\n#### Technical details:\r\n\r\n\r\n* Platform ( ASP.NET Core WebAPI)\r\n* .NET Core Version: 2.0.8\r\n"},"comment":{"url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/comments/427171268","html_url":"https://github.com/sendgrid/sendgrid-csharp/issues/745#issuecomment-427171268","issue_url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/745","id":427171268,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzE3MTI2OA==","user":{"login":"thinkingserious","id":146695,"node_id":"MDQ6VXNlcjE0NjY5NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/146695?v=4","gravatar_id":"","url":"https://api.github.com/users/thinkingserious","html_url":"https://github.com/thinkingserious","followers_url":"https://api.github.com/users/thinkingserious/followers","following_url":"https://api.github.com/users/thinkingserious/following{/other_user}","gists_url":"https://api.github.com/users/thinkingserious/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkingserious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkingserious/subscriptions","organizations_url":"https://api.github.com/users/thinkingserious/orgs","repos_url":"https://api.github.com/users/thinkingserious/repos","events_url":"https://api.github.com/users/thinkingserious/events{/privacy}","received_events_url":"https://api.github.com/users/thinkingserious/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T21:13:17Z","updated_at":"2018-10-04T21:13:17Z","author_association":"MEMBER","body":"Hi @Muskan-14,\r\n\r\nPerhaps our [transactional templates](https://github.com/sendgrid/sendgrid-csharp/blob/master/USE_CASES.md#transactional-templates) is what you need.\r\n\r\nWith Best Regards,\r\n\r\nElmer"}}
{"actor":{"display_login":"thinkingserious"}}