[New-bugs-announce] [issue36094] When using an SMTP SSL connection, , get ValueError.

赵军昱 report at bugs.python.org
Sat Feb 23 12:44:01 EST 2019


New submission from 赵军昱 <200612453 at qq.com>:

The following bug occurs when you connect after creating an instance of SMTP_SSL:
```
import smtplib


smtp_server = "smtp.163.com"
con2 = smtplib.SMTP_SSL()
con2.connect(smtp_server, 465)
```
ValueError:
server_hostname cannot be an empty string or start with a leading dot.
  File "E:\code\noUse.py", line 8, in <module>
    con2.connect(smtp_server, 465)

----------
components: email
files: 1.png
messages: 336393
nosy: barry, r.david.murray, tyrone-zhao
priority: normal
severity: normal
status: open
title: When using an SMTP SSL connection,, get ValueError.
type: resource usage
versions: Python 3.7
Added file: https://bugs.python.org/file48167/1.png

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36094>
_______________________________________


More information about the New-bugs-announce mailing list