{"action":"created","issue":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/380","repository_url":"https://api.github.com/repos/jstedfast/MailKit","labels_url":"https://api.github.com/repos/jstedfast/MailKit/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/jstedfast/MailKit/issues/380/comments","events_url":"https://api.github.com/repos/jstedfast/MailKit/issues/380/events","html_url":"https://github.com/jstedfast/MailKit/issues/380","id":170567849,"number":380,"title":"Newlines are interpreted differently depending on mail server. Can I do something about it?","user":{"login":"Bartmax","id":3386797,"avatar_url":"https://avatars.githubusercontent.com/u/3386797?v=3","gravatar_id":"","url":"https://api.github.com/users/Bartmax","html_url":"https://github.com/Bartmax","followers_url":"https://api.github.com/users/Bartmax/followers","following_url":"https://api.github.com/users/Bartmax/following{/other_user}","gists_url":"https://api.github.com/users/Bartmax/gists{/gist_id}","starred_url":"https://api.github.com/users/Bartmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bartmax/subscriptions","organizations_url":"https://api.github.com/users/Bartmax/orgs","repos_url":"https://api.github.com/users/Bartmax/repos","events_url":"https://api.github.com/users/Bartmax/events{/privacy}","received_events_url":"https://api.github.com/users/Bartmax/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jstedfast/MailKit/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-11T04:20:54Z","updated_at":"2016-08-11T12:57:54Z","closed_at":"2016-08-11T10:42:05Z","body":"I'm new to this mails thing so this may be a naive question, but I was wondering why is this happening and if it's something mailkit can take care of or email providers are doing something they can improve.\r\n\r\nI didn't do a lot of test, but just sending an email like this:\r\n\r\n```\r\nvar msg = $@\"This message\r\nspans multiple\r\nlines\r\n\r\nGreetings!\r\n\";\r\n\r\nmessage.Body = new TextPart(\"plain\") { Text = msg };\r\nusing (var client = new SmtpClient())\r\n{\r\n    await client.ConnectAsync(\"smtpserver\", 587, SecureSocketOptions.Auto);\r\n    await client.AuthenticateAsync(\"user\", \"pass\");\r\n    await client.SendAsync(message);\r\n    await client.DisconnectAsync(true);\r\n}\r\n```\r\n\r\nWhen using gmail smtp server, when I look at the email on gmail web client, I see the lines as they were sent.\r\n\r\nI then switched to sendgrid smtp server, and at the same client (gmail web) i see the email as one liner, like this: \r\n```\r\nThis message spans multiple lines\r\nGreetings!\r\n```\r\n\r\nI found this to be inconsistent, wanted to know if you know why, if there is a setting on mailkit to make it behave always the same way, or if there's nothing I can do on my end.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/comments/239153117","html_url":"https://github.com/jstedfast/MailKit/issues/380#issuecomment-239153117","issue_url":"https://api.github.com/repos/jstedfast/MailKit/issues/380","id":239153117,"user":{"login":"jstedfast","id":338984,"avatar_url":"https://avatars.githubusercontent.com/u/338984?v=3","gravatar_id":"","url":"https://api.github.com/users/jstedfast","html_url":"https://github.com/jstedfast","followers_url":"https://api.github.com/users/jstedfast/followers","following_url":"https://api.github.com/users/jstedfast/following{/other_user}","gists_url":"https://api.github.com/users/jstedfast/gists{/gist_id}","starred_url":"https://api.github.com/users/jstedfast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstedfast/subscriptions","organizations_url":"https://api.github.com/users/jstedfast/orgs","repos_url":"https://api.github.com/users/jstedfast/repos","events_url":"https://api.github.com/users/jstedfast/events{/privacy}","received_events_url":"https://api.github.com/users/jstedfast/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T12:57:54Z","updated_at":"2016-08-11T12:57:54Z","body":"awesome, thanks"}}
{"actor":{"display_login":"jstedfast"}}