-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sending email with invalid smtp certificate #14442
Comments
It's already there OrchardCore/src/OrchardCore/OrchardCore.Email.Core/Services/SmtpService.cs Lines 242 to 269 in d312e24
|
Maybe the current issue is you can't send the email when there's error |
Yes, but I would like to have the choice (with a check box from the mail server settings in the admin area) to be able to bypass the invalid or self-signed certificate. |
Check my related PR |
I reopen this will be closed automatically once the PR is merged |
Mailkit supports sending email when the server's smtp certificate is invalid. Maybe this function should be integrated into OrchardCore.
smtp.ServerCertificateValidationCallback = (mysender, certificate, chain, sslPolicyErrors) => { return true; }; smtp.CheckCertificateRevocation = false;
The text was updated successfully, but these errors were encountered: