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
KYLIN-4515 fix error with sending mail on ssl #1214
Conversation
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html When we set `starttlsEnabled` to true, specify a ssl port as 465, emails could not be sent by this ssl port, It still use 25 default port. The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port.
Codecov Report
@@ Coverage Diff @@
## master #1214 +/- ##
============================================
- Coverage 24.85% 24.84% -0.01%
+ Complexity 6265 6263 -2
============================================
Files 1453 1453
Lines 89225 89226 +1
Branches 12456 12456
============================================
- Hits 22173 22170 -3
- Misses 64875 64878 +3
- Partials 2177 2178 +1
Continue to review full report at Codecov.
|
Pull Request Test Coverage Report for Build 5913
💛 - Coveralls |
@chenqingspring Thanks for your pr, would you please open a jira for the issue? |
@nichunen Sure, with my pleasure :) KYLIN-4515 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello chenqing, thanks for your pr! Could you please report a JIRA issue, and then associate this commit with the JIRA? JIRA is required for each issue/bugfix. Thanks!
@shaofengshi Hi shaofeng, what do you mean by associating github commit? I'm trying to rename this issue start with KYLIN-4515, but it seems not editable. |
@shaofengshi somehow ... this issue name could be changed. Tell me if I should do anything else? |
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html When we set `starttlsEnabled` to true, specify a ssl port as 465, emails could not be sent by this ssl port, It still use 25 default port. The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port.
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html When we set `starttlsEnabled` to true, specify a ssl port as 465, emails could not be sent by this ssl port, It still use 25 default port. The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port.
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html When we set `starttlsEnabled` to true, specify a ssl port as 465, emails could not be sent by this ssl port, It still use 25 default port. The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port. (cherry picked from commit d8060b6)
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html When we set `starttlsEnabled` to true, specify a ssl port as 465, emails could not be sent by this ssl port, It still use 25 default port. The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port. (cherry picked from commit d8060b6)
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html When we set `starttlsEnabled` to true, specify a ssl port as 465, emails could not be sent by this ssl port, It still use 25 default port. The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by `setSSLOnConnect` as well when using ssl port. (cherry picked from commit d8060b6)
Proposed changes
Here is context of this problem:https://www.mail-archive.com/user@kylin.apache.org/msg04009.html
When I set
starttlsEnabled
to true, and specify a ssl port as 465, the email could not be sent by this ssl port. It still use 25 default port.The root cause is, with such config above, HTMLEmail client doesn't enable ssl connection, so we need to enable ssl connection by
setSSLOnConnect
as well when using ssl port.Types of changes
[Bugfix] fix error with sending mail on ssl