Skip to content
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

邮箱通知不支持 SSL #33

Closed
WayneGongCN opened this issue Jan 15, 2019 · 6 comments
Closed

邮箱通知不支持 SSL #33

WayneGongCN opened this issue Jan 15, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@WayneGongCN
Copy link

https://github.com/pjialin/py12306/blob/master/py12306/helpers/notification.py#L91

测试邮件通知失败,
我在 QQ 邮箱设置中没有找到 SSL 相关配置,
但是测试能通过 smtplib.SMTP_SSL 方式登陆。

使用 SSL 可以作为可配置项目。

@pjialin
Copy link
Owner

pjialin commented Jan 15, 2019

邮箱配置中 host 支持带端口,如 smtp.qq.com:465,再试试

@sunrishe
Copy link

邮件发送使用ssl会失败,建议增加一个参数,判断是否使用ssl
我改了下源码,./py12306/helpers/notification.py:91行,使用smtplib.SMTP_SSL调用ssl进行邮件发送

@pjialin pjialin added the enhancement New feature or request label Jan 15, 2019
@pjialin
Copy link
Owner

pjialin commented Jan 15, 2019

好的,感谢

@Dong-Ni
Copy link

Dong-Ni commented Dec 21, 2019

授权码是登录发送邮箱的密码?

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants
@pjialin @Dong-Ni @WayneGongCN @sunrishe and others