[MailKitSender] Per client ServerCertificateValidationCallback - #338
[MailKitSender] Per client ServerCertificateValidationCallback#338Whivel wants to merge 3 commits into
Conversation
Whivel
commented
Aug 16, 2022
duplicate #333 |
aravindk777
commented
Mar 23, 2024
Whivel
commented
Mar 24, 2024
in #256 and in #333 they both forgot to add the same features to the SendAsync method. Both prs pass and use CheckCertificateRevocation which is not in this pr. in #333 the callback method is not passed. I think #256 and #333 cannot be merged because they are incomplete because they miss the same change in the async method and. |
aravindk777
commented
Mar 24, 2024
So, @Whivel - do you want to add that |
[FluentEmail.MailKit]
I added a new option in SmtpClientOptions to give the opportunity to specify a ServerCertificateValidationCallback per client.
If specified the callback is assigned to the MailKit SmtpClient and it will be used instead of the default one. In that way it is possible to avoid the use of the global variable "ServicePointManager.ServerCertificateValidationCallback"