FluentEmail
FluentEmail copied to clipboard
[MailKitSender] Per client ServerCertificateValidationCallback
[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"
duplicate #333
There are two possible dupes/similar implementations: #333 and #256. Are we going to keep this or has any additional abilities compared to other two? so we can review the most beneficial PR?
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. #338 (this) could be merged but i think CheckCertificateRevocation should be added (in this or with another pr)
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. #338 (this) could be merged but i think CheckCertificateRevocation should be added (in this or with another pr)
So, @Whivel - do you want to add that CheckCertificateRevocation
in to this PR and then we can review and merge? Or do you intend to do that as separate PR?