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

Increase e-mail reminder function #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Increase e-mail reminder function #28

wants to merge 1 commit into from

Conversation

Skyge
Copy link

@Skyge Skyge commented Jan 18, 2018

In this part, i add the function of sending e-mail just like your TODO said.


mail_host = "smtp.163.com" # SMTP服务器
mail_user = "xxx@163.com" # 用户名
mail_pass = "xxx" # 授权密码(非登录密码)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个地方只支持授权密码吗?如果使用非163邮箱这个授权码就无效了,通用性是不是差了点?

mail_user = "xxx@163.com" # 用户名
mail_pass = "xxx" # 授权密码(非登录密码)

sender = "xxx@163.com" # 发件人邮箱
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可否支持其他类型邮箱邮件?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该也可以,我只是拿163邮箱举了个栗子。晚些时候我可以试一试。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

晚些时候又注册了一些新的邮箱测试了一下,现总结如下:
(1)使用163,126,QQ邮箱作为发件人邮箱是需要设置授权密码的,而收件人邮箱可以是163,126,QQ,sina,139邮箱中的任何一个;
(2)使用sina邮箱作为发件人邮箱是不需要设置授权密码的,只需要输入邮箱的登录密码即可。而收件人邮箱可以是163,126,QQ,sina,139邮箱中的任何一个,但是QQ邮箱会将sina邮箱发送的邮件当做垃圾邮件接收;
(3)使用139邮箱作为发件人邮箱也是不需要设置授权密码的,但是163,126,QQ,sina邮箱会将拒绝接收邮件,所以会发生退件的情况。
PS:测试完这些邮箱后,我在想完全可以利用python给手机发短信来提醒我们啊!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本人测试得到QQ邮箱不需要授权密码,直接用QQ密码就能登录

@xiaoshun007
Copy link
Owner

@Skyge 感谢pr

@xtet2008
Copy link

发邮件和发短信我都搞了,发邮件用的是QQ服务器,发短信用的是阿里大鱼,按流量扣费。

@XAS-712
Copy link

XAS-712 commented Feb 6, 2018

@xtet2008 阿里的服务是不是还得再加个SDK?还有,AK也得放好,这对于一般用户比较麻烦

@flyinghpluo
Copy link

博主,请问一下我运行了你的12306抢票软件代码,运行成功了,但只是跳出了12306铁路官网,并没有完成自动购票,需要自己手动操作
QQ图片20190417114059

@biaohanli
Copy link

biaohanli commented Apr 17, 2019 via email

@flyinghpluo
Copy link

flyinghpluo commented Apr 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants