You can now send emails if you don't use Authentication (#2718)

This commit is contained in:
Joe Milazzo 2024-02-14 14:36:55 -06:00 committed by GitHub
parent 2d81527bd1
commit 7b7609652c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 414 additions and 350 deletions

View file

@ -96,7 +96,7 @@ public class ServerSettingDto
public bool IsEmailSetup()
{
return !string.IsNullOrEmpty(SmtpConfig.Host)
&& !string.IsNullOrEmpty(SmtpConfig.UserName)
&& !string.IsNullOrEmpty(SmtpConfig.SenderAddress)
&& !string.IsNullOrEmpty(HostName);
}
@ -107,6 +107,6 @@ public class ServerSettingDto
public bool IsEmailSetupForSendToDevice()
{
return !string.IsNullOrEmpty(SmtpConfig.Host)
&& !string.IsNullOrEmpty(SmtpConfig.UserName);
&& !string.IsNullOrEmpty(SmtpConfig.SenderAddress);
}
}