[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @lidayan I think it's a misuse of the logging.handlers.SMTPHandler class. -- ___ Python tracker ___

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Julien Palard
Julien Palard added the comment: lidayan (Ignore my latest comment I was reading your implementation, not the actual one...). -- ___ Python tracker ___ __

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Julien Palard
Julien Palard added the comment: @lidayan, if you're trying implicit TLS, have you tried giving a username an an empty tuple to the secure parameter? It looks like the empty tuple means "implicit TLS", see the docstring https://github.com/python/cpython/blob/7fea5ad9f081247927bc851605f3a6269

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Julien Palard
Julien Palard added the comment: lidayan If I understand correctly, you're trying to connect to an SMTP server that does *not* support STARTTLS, only implicit TLS on port 465? -- nosy: +mdk ___ Python tracker _

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I propose to create a SMTPSSLHandler class and submit a PR. -- ___ Python tracker ___ ___ Python-

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Here is my suggestion class SMTPSSLHander(SMTPHandler): def emit(self, record): """ Emit a record. Format the record and send it to the specified addressees. """ try: import smtplib from emai

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @lidayan I have checked the code of your PR, and I think there is an issue with your code. 1. When you specify the secure flag to the SMTPHandler, it's because you will start the TLS connection if the SMTP server supports the STARTTLS. Firstly in plaintext

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I re-open this issue because after the change of the subject, maybe there is an issue with the code of logging.handler.SMTPHandler + TLS. -- resolution: rejected -> status: closed -> open ___ Python tracker

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread Emmanuel Arias
Emmanuel Arias added the comment: hmmm do you have some code to reproduce it? -- nosy: +eamanu ___ Python tracker ___ ___ Python-bu

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread lidayan
Change by lidayan <840286...@qq.com>: -- pull_requests: +11888 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread lidayan
Change by lidayan <840286...@qq.com>: -- pull_requests: +11886 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35995] use SSL encrypted socket on logging.handlers.SMTPHandler

2019-02-14 Thread lidayan
Change by lidayan <840286...@qq.com>: -- title: logging.handlers.SMTPHandler -> use SSL encrypted socket on logging.handlers.SMTPHandler ___ Python tracker ___ ___