Skip to content

MailKitSender - make it possible to preprocess MimeMessage instances after creation before sending #388

@emayevski

Description

@emayevski

Current implementation of Send and SendAsync calls CreateMailMessage() to create an instance of MimeMessage. After that, the message can be DKIM-signed. The problem is that CreateMailMessage() is a private method, and there's no other place to hook into the process. My suggestion/request is that either CreateMailMessage is made virtual protected, or there's another virtual protected method introduced, which would be called after CreateMailMessage completes. The first option is of course simpler and require changing one word (private) to two. Then, one would be able to subclass the MailKitSender class and override the method, adding the necessary functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions