Skip to content

MailkitSender: configure using IOptionsMonitor #36

Description

@gdube-nrc

Is there a way you would accept to support reloadable options for smtp settings? MailkitSender is simple enough that I can just create another version of it that accepts IOptionsMonitor<SmtpClientOptions>, but I wonder if you'd like to have it builtin.

Perhaps a simple wrapper that gets IOptionsMonitor<SmtpClientOptions> via DI and creates a MailkitSender on send.

Note:
My use case is a blazor server-side app where the scope is long-lived (signal-r circuit).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions