diff --git a/Project-Unite/App_Start/IdentityConfig.cs b/Project-Unite/App_Start/IdentityConfig.cs index 1d79bb5..61310c4 100644 --- a/Project-Unite/App_Start/IdentityConfig.cs +++ b/Project-Unite/App_Start/IdentityConfig.cs @@ -37,14 +37,15 @@ public Task SendAsync(IdentityMessage msg) Subject = "[ShiftOS] " + msg.Subject, BodyHtml = msg.Body, Tracking = true, - FooterAddress = "sys@michaeltheshifter.me", - SignatureDomain = "getshiftos.ml" }; var result = reachmail.Easysmtp.Post(request); + + var sb = new StringBuilder(); + sb.AppendLine("Email summary"); + sb.AppendLine("Current volume: " + result.CurrentVolume.ToString()); if (result.Failures) { - var sb = new StringBuilder(); sb.AppendLine("A fatal exception has occurred in the Unite mail backend."); sb.AppendLine(); sb.AppendLine("Basically, we couldn't send messages to the following addresses: "); @@ -54,12 +55,13 @@ public Task SendAsync(IdentityMessage msg) sb.AppendLine(" - " + addr.Email); sb.AppendLine(" - Reason: " + addr.Reason); } - sb.AppendLine("FUCKING CONTACT MICHAEL. NOW."); - string exc = sb.ToString(); - var db = new ApplicationDbContext(); - db.AuditLogs.Add(new AuditLog("system", AuditLogLevel.Admin, exc)); - db.SaveChanges(); + sb.AppendLine("I don't want to swear, but seriously. I need to fix this. - Michael"); + } + string exc = sb.ToString(); + var db = new ApplicationDbContext(); + db.AuditLogs.Add(new AuditLog("system", AuditLogLevel.Admin, exc)); + db.SaveChanges(); return Task.FromResult(result); }