{"action":"created","issue":{"url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/268","repository_url":"https://api.github.com/repos/sendgrid/sendgrid-csharp","labels_url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/268/comments","events_url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/268/events","html_url":"https://github.com/sendgrid/sendgrid-csharp/issues/268","id":164682176,"number":268,"title":"Email.To.Name containing comma causes problem","user":{"login":"APM3","id":10156406,"avatar_url":"https://avatars2.githubusercontent.com/u/10156406?v=4","gravatar_id":"","url":"https://api.github.com/users/APM3","html_url":"https://github.com/APM3","followers_url":"https://api.github.com/users/APM3/followers","following_url":"https://api.github.com/users/APM3/following{/other_user}","gists_url":"https://api.github.com/users/APM3/gists{/gist_id}","starred_url":"https://api.github.com/users/APM3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/APM3/subscriptions","organizations_url":"https://api.github.com/users/APM3/orgs","repos_url":"https://api.github.com/users/APM3/repos","events_url":"https://api.github.com/users/APM3/events{/privacy}","received_events_url":"https://api.github.com/users/APM3/received_events","type":"User","site_admin":false},"labels":[{"id":378717241,"url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/labels/status:%20help%20wanted","name":"status: help wanted","color":"d4c5f9","default":false},{"id":24362825,"url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/labels/type:%20bug","name":"type: bug","color":"e10c02","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-09T19:37:14Z","updated_at":"2017-10-05T19:48:04Z","closed_at":"2016-07-25T16:13:01Z","author_association":"NONE","body":"#### Issue Summary\n\nWhen I create Email with Name that is Last, First, it gets thru the SendGrid ok, but then SendGrid drops it.  The Json that is created by Mail.Get() looks correct, so I think the problem is in the webApi handler on the server side.\n#### Steps to Reproduce\n\nSend message that has a recipient with name that has a comma in it.\nSendGrid will drop it for having an invalid address\n#### Technical details:\n\nvar msg = new Mail(new Email(\"me@home.com\"), \"Test\", new Email(\"you@home.com\", \"Last, First\"), new Content(\"text/plain\", \"Testing 1-2-3\"));\nvar request = new SendGrid.SendGridAPIClient(ApiKey);\nrequest.client.mail.send.post(requestBody: msg.Get());\n\nIt sends ok, but now if you go check in SendGrid then you will see that SendGrid drops the email for having a bad address, and it appears to be using part of the name as the address...instead of the actual address.\n- sendgrid-csharp Version: 7.0.5\n- .NET Version: 4.5.2\n"},"comment":{"url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/comments/334572551","html_url":"https://github.com/sendgrid/sendgrid-csharp/issues/268#issuecomment-334572551","issue_url":"https://api.github.com/repos/sendgrid/sendgrid-csharp/issues/268","id":334572551,"user":{"login":"jsgoupil","id":808649,"avatar_url":"https://avatars3.githubusercontent.com/u/808649?v=4","gravatar_id":"","url":"https://api.github.com/users/jsgoupil","html_url":"https://github.com/jsgoupil","followers_url":"https://api.github.com/users/jsgoupil/followers","following_url":"https://api.github.com/users/jsgoupil/following{/other_user}","gists_url":"https://api.github.com/users/jsgoupil/gists{/gist_id}","starred_url":"https://api.github.com/users/jsgoupil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsgoupil/subscriptions","organizations_url":"https://api.github.com/users/jsgoupil/orgs","repos_url":"https://api.github.com/users/jsgoupil/repos","events_url":"https://api.github.com/users/jsgoupil/events{/privacy}","received_events_url":"https://api.github.com/users/jsgoupil/received_events","type":"User","site_admin":false},"created_at":"2017-10-05T19:48:04Z","updated_at":"2017-10-05T19:48:04Z","author_association":"NONE","body":"This is still an issue as of October 5th 2017.\r\nSurrounding the name with double quotes is a terrible workaround that will display double quotes on the email client.\r\nThe \"FROM\" can have a comma, but the \"TO\" cannot.\r\n\r\nMore than a year and this bug is not fixed and marked as closed."}}
{"actor":{"display_login":"jsgoupil"}}