Make anti-spam pool static
i4004 opened this issue · comments
Since SmtpClient
is disposable then MailSender
also requires disposing and it's lifetime would be short and will reset anti-spam filter. anti-spam filter should not depend on that.
Simplify is an open-source set of lightweight .NET libraries that provide infrastructure for your applications. DI and mocking friendly.
i4004 opened this issue · comments
Since SmtpClient
is disposable then MailSender
also requires disposing and it's lifetime would be short and will reset anti-spam filter. anti-spam filter should not depend on that.