Remove static methods and events from EmailSender

This commit is contained in:
Kenn Jacobsen
2021-02-25 15:08:56 +01:00
parent 01bf937497
commit 3769e8108c
6 changed files with 46 additions and 103 deletions

View File

@@ -443,7 +443,7 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
return new ValidationErrorResult(new SimpleValidationModel(ModelState.ToErrorDictionary()));
}
if (!EmailSender.CanSendRequiredEmail(_globalSettings) && !_userManager.HasSendingUserInviteEventHandler)
if (!_emailSender.CanSendRequiredEmail() && !_userManager.HasSendingUserInviteEventHandler)
{
return new ValidationErrorResult("No Email server is configured");
}