mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Add logging for successful email sends.
This commit is contained in:
parent
5ec872f74f
commit
fead39724f
@ -859,7 +859,7 @@ namespace Remotely.Server.Services
|
||||
catch { }
|
||||
}
|
||||
|
||||
public void WriteEvent(Exception ex, string organizationID = null)
|
||||
public void WriteEvent(Exception ex, string organizationID)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@ -48,6 +48,7 @@ namespace Remotely.Server.Services
|
||||
mailMessage.Body = htmlMessage;
|
||||
mailMessage.ReplyToList.Add(new MailAddress(replyTo));
|
||||
mailClient.Send(mailMessage);
|
||||
DataService.WriteEvent($"Email successfully sent to {email}. Subject: \"{subject}\".", organizationID);
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@ -92,7 +92,7 @@ namespace Remotely.Server.Services
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
DataService.WriteEvent(ex);
|
||||
DataService.WriteEvent(ex, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -253,7 +253,7 @@ namespace Remotely.Server
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
dataService.WriteEvent(ex);
|
||||
dataService.WriteEvent(ex, null);
|
||||
}
|
||||
dataService.SetAllDevicesNotOnline();
|
||||
dataService.CleanupOldRecords();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user