From d5f4278b301641165e794b683512528cab6b8307 Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Sun, 12 Mar 2023 22:05:18 +0100 Subject: [PATCH] Removed logs. Enabled ssl --- Moonlight/App/Services/MailService.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Moonlight/App/Services/MailService.cs b/Moonlight/App/Services/MailService.cs index 4104bb50..38482a2b 100644 --- a/Moonlight/App/Services/MailService.cs +++ b/Moonlight/App/Services/MailService.cs @@ -55,11 +55,9 @@ public class MailService client.Host = Server; client.Port = Port; - client.EnableSsl = false; + client.EnableSsl = true; client.Credentials = new NetworkCredential(Email, Password); - Logger.Debug("Sending"); - await client.SendMailAsync(new MailMessage() { From = new MailAddress(Email), @@ -69,16 +67,12 @@ public class MailService Subject = $"Hey {user.FirstName}, there are news from moonlight", To = { new MailAddress(user.Email) } }); - - Logger.Debug("Send!"); } catch (Exception e) { Logger.Warn("Error sending mail"); Logger.Warn(e); } - - Logger.Debug("Mail send task stopped"); }); }