Files
Umbraco-CMS/src/Umbraco.Core/Mail/NotImplementedEmailSender.cs
2021-02-25 15:08:56 +01:00

16 lines
548 B
C#

using System;
using System.Threading.Tasks;
using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.Mail
{
internal class NotImplementedEmailSender : IEmailSender
{
public Task SendAsync(EmailMessage message)
=> throw new NotImplementedException("To send an Email ensure IEmailSender is implemented with a custom implementation");
public bool CanSendRequiredEmail()
=> throw new NotImplementedException("To send an Email ensure IEmailSender is implemented with a custom implementation");
}
}