[issue35995] logging.handlers.SMTPHandler

2019-06-19 Thread Vinay Sajip


Vinay Sajip  added the comment:

Closing, as no answer has been received to the last question.

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35995] logging.handlers.SMTPHandler

2019-02-21 Thread Vinay Sajip


Vinay Sajip  added the comment:

The existing implementation supports doing an SSL handshake using STARTTLS, 
which provides encryption for the actual email traffic. You are asking, it 
seems, to support a server that only listens on an already encrypted 
connection, and doesn't use STARTTLS. That would, in my book, be an 
*enhancement request* and not a bug. Your PR has removed the STARTTLS support - 
what is supposed to happen when connecting to a server that listens unencrypted 
and expects to use STARTTLS to initiate encypted traffic?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35995] logging.handlers.SMTPHandler

2019-02-20 Thread lidayan


lidayan <840286...@qq.com> added the comment:

1. When specify the secure flag to the SMTPHandler, means start TLS connection. 
2. if SMTP Server not support plaintext mode, but firstly in plaintext mode it 
is a error

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35995] logging.handlers.SMTPHandler

2019-02-20 Thread lidayan

lidayan <840286...@qq.com> added the comment:

And I have changed the code, please help to review, thanks

> 在 2019年2月21日,10:08,李大炎 <840286...@qq.com> 写道:
> 
> OK, I got it. 
> 
> 
>> 在 2019年2月14日,16:46,Stéphane Wirtel  写道:
>> 
>> 
>> Stéphane Wirtel  added the comment:
>> 
>> You have a timeout, maybe you have an issue with your SMTP server. But in 
>> this case, it's not an issue with Python.
>> 
>> --
>> nosy: +matrixise
>> resolution:  -> rejected
>> stage:  -> resolved
>> status: open -> closed
>> 
>> ___
>> Python tracker 
>> 
>> ___
>> 
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35995] logging.handlers.SMTPHandler

2019-02-20 Thread lidayan

lidayan <840286...@qq.com> added the comment:

OK, I got it. 

> 在 2019年2月14日,16:46,Stéphane Wirtel  写道:
> 
> 
> Stéphane Wirtel  added the comment:
> 
> You have a timeout, maybe you have an issue with your SMTP server. But in 
> this case, it's not an issue with Python.
> 
> --
> nosy: +matrixise
> resolution:  -> rejected
> stage:  -> resolved
> status: open -> closed
> 
> ___
> Python tracker 
> 
> ___
>

--
title: use SSL encrypted socket on logging.handlers.SMTPHandler -> 
logging.handlers.SMTPHandler

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35995] logging.handlers.SMTPHandler

2019-02-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

You have a timeout, maybe you have an issue with your SMTP server. But in this 
case, it's not an issue with Python.

--
nosy: +matrixise
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35995] logging.handlers.SMTPHandler

2019-02-14 Thread lidayan


New submission from lidayan <840286...@qq.com>:

SSL encrypted socket on SMTPHandler error

Traceback (most recent call last):
  File 
"/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/handlers.py",
 line 1008, in emit
smtp = smtplib.SMTP(self.mailhost, port, timeout=self.timeout)
  File 
"/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/smtplib.py",
 line 251, in __init__
(code, msg) = self.connect(host, port)
  File 
"/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/smtplib.py",
 line 338, in connect
(code, msg) = self.getreply()
  File 
"/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/smtplib.py",
 line 391, in getreply
+ str(e))
smtplib.SMTPServerDisconnected: Connection unexpectedly closed: timed out

--
components: Library (Lib)
messages: 335511
nosy: lidayan
priority: normal
severity: normal
status: open
title: logging.handlers.SMTPHandler
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com