You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: