namespace zero.Mails;
public interface IMailDispatcher : IDisposable
{
///
/// Adds a new mail message to the outgoing queue
///
void Enqueue(Mail message);
///
/// Sends all mails which have been added to the queue previously
///
Task Send(CancellationToken token = default);
///
/// Whether a certain sender signature is supported by this dispatcher
///
Task IsSenderSupported(string email) => Task.FromResult(true);
}