{"action":"created","issue":{"url":"https://api.github.com/repos/serilog/serilog-sinks-email/issues/30","repository_url":"https://api.github.com/repos/serilog/serilog-sinks-email","labels_url":"https://api.github.com/repos/serilog/serilog-sinks-email/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/serilog/serilog-sinks-email/issues/30/comments","events_url":"https://api.github.com/repos/serilog/serilog-sinks-email/issues/30/events","html_url":"https://github.com/serilog/serilog-sinks-email/issues/30","id":211486623,"number":30,"title":"Not able to send emails through Amazon SES","user":{"login":"mdmoura","id":372865,"avatar_url":"https://avatars1.githubusercontent.com/u/372865?v=3","gravatar_id":"","url":"https://api.github.com/users/mdmoura","html_url":"https://github.com/mdmoura","followers_url":"https://api.github.com/users/mdmoura/followers","following_url":"https://api.github.com/users/mdmoura/following{/other_user}","gists_url":"https://api.github.com/users/mdmoura/gists{/gist_id}","starred_url":"https://api.github.com/users/mdmoura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdmoura/subscriptions","organizations_url":"https://api.github.com/users/mdmoura/orgs","repos_url":"https://api.github.com/users/mdmoura/repos","events_url":"https://api.github.com/users/mdmoura/events{/privacy}","received_events_url":"https://api.github.com/users/mdmoura/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-03-02T19:06:14Z","updated_at":"2017-03-04T12:55:15Z","closed_at":"2017-03-04T03:02:15Z","body":"I am trying to use Email Sink on an ASP.NET Core 1.1 application with Amazon SES:\r\n\r\n        loggerConfiguration\r\n          .WriteTo.Email(\r\n            new EmailConnectionInfo { \r\n              EmailSubject = \"Log\",\r\n              EnableSsl = true,\r\n              FromEmail = \"myname@mydomain.com\",\r\n              MailServer = \"email-smtp.eu-west-1.amazonaws.com\",\r\n              NetworkCredentials = new NetworkCredential(\"MySMTPUsername\", \"MySMTPPassword\"),\r\n              Port = 587,\r\n              ToEmail = \"myname@mydomain.com\"\r\n            },\r\n            \"{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} [{Level}] {Message}{NewLine}{Exception}\",\r\n            LogEventLevel.Information); \r\n\r\nWhen I log an information I do not receive it by email ...\r\n\r\nOn the same application I am using Mailkit to send emails through Amazon SES and I don't have any problems:\r\n\r\n      using (SmtpClient client = new SmtpClient()) {\r\n\r\n        client.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;\r\n\r\n        client.Connect(\"email-smtp.eu-west-1.amazonaws.com\", 587, SecureSocketOptions.StartTlsWhenAvailable);\r\n        client.Authenticate(\"MySMTPUsername\", \"MySMTPPassword\");\r\n\r\n        await client.SendAsync(message);\r\n\r\n        client.Disconnect(true);\r\n\r\n      }\r\n\r\nAm I missing something? Maybe: \r\n\r\n        client.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;"},"comment":{"url":"https://api.github.com/repos/serilog/serilog-sinks-email/issues/comments/284149832","html_url":"https://github.com/serilog/serilog-sinks-email/issues/30#issuecomment-284149832","issue_url":"https://api.github.com/repos/serilog/serilog-sinks-email/issues/30","id":284149832,"user":{"login":"mdmoura","id":372865,"avatar_url":"https://avatars1.githubusercontent.com/u/372865?v=3","gravatar_id":"","url":"https://api.github.com/users/mdmoura","html_url":"https://github.com/mdmoura","followers_url":"https://api.github.com/users/mdmoura/followers","following_url":"https://api.github.com/users/mdmoura/following{/other_user}","gists_url":"https://api.github.com/users/mdmoura/gists{/gist_id}","starred_url":"https://api.github.com/users/mdmoura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdmoura/subscriptions","organizations_url":"https://api.github.com/users/mdmoura/orgs","repos_url":"https://api.github.com/users/mdmoura/repos","events_url":"https://api.github.com/users/mdmoura/events{/privacy}","received_events_url":"https://api.github.com/users/mdmoura/received_events","type":"User","site_admin":false},"created_at":"2017-03-04T12:55:15Z","updated_at":"2017-03-04T12:55:15Z","body":"@adamchester I tried:\r\n\r\n        EmailConnectionInfo info = new EmailConnectionInfo {\r\n          ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true\r\n        };\r\n\r\nBut I get the compilation error:\r\n\r\n    'The name 'ServerCertificateValidationCallback' does not exist in the current context\r\n\r\nAnd: \r\n\r\n        EmailConnectionInfo info = new EmailConnectionInfo {\r\n          DisableServerCertificateValidation = true\r\n        };\r\n\r\nBut I get the compilation error:\r\n\r\n    'EmailConnectionInfo' does not contain a definition for 'DisableServerCertificateValidation' \r\n\r\nI have this on ASP.NET Core 1.1 project with:\r\n\r\n      <PropertyGroup>\r\n          <TargetFramework>netcoreapp1.1</TargetFramework>\r\n      </PropertyGroup>\r\n\r\n      <PropertyGroup>\r\n        <PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>\r\n      </PropertyGroup>\r\n       \r\nI am also using MailKit 1.10.2 ...\r\n\r\nWhat am I missing?\r\n"}}
{"actor":{"display_login":"mdmoura"}}