-
Notifications
You must be signed in to change notification settings - Fork 243
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
base: master
Are you sure you want to change the base?
Conversation
|
||
mail_host = "smtp.163.com" # SMTP服务器 | ||
mail_user = "xxx@163.com" # 用户名 | ||
mail_pass = "xxx" # 授权密码(非登录密码) |
There was a problem hiding this comment.
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" # 发件人邮箱 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可否支持其他类型邮箱邮件?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该也可以,我只是拿163邮箱举了个栗子。晚些时候我可以试一试。
There was a problem hiding this comment.
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给手机发短信来提醒我们啊!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
本人测试得到QQ邮箱不需要授权密码,直接用QQ密码就能登录
@Skyge 感谢pr |
发邮件和发短信我都搞了,发邮件用的是QQ服务器,发短信用的是阿里大鱼,按流量扣费。 |
@xtet2008 阿里的服务是不是还得再加个SDK?还有,AK也得放好,这对于一般用户比较麻烦 |
要改后面网址,12306改了地址了
发自我的 iPhone
… 在 2019年4月17日,11:43,flyinghpluo ***@***.***> 写道:
博主,请问一下我运行了你的12306抢票软件代码,运行成功了,但只是跳出了12306铁路官网,并没有完成自动购票,需要自己手动操作
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
博主,能教教我怎么改?
…------------------ 原始邮件 ------------------
发件人: "biaohanli"<notifications@github.com>;
发送时间: 2019年4月17日(星期三) 中午11:50
收件人: "xiaoshun007/12306Python"<12306Python@noreply.github.com>;
抄送: "flying~~"<1978169358@qq.com>; "Comment"<comment@noreply.github.com>;
主题: Re: [xiaoshun007/12306Python] Increase e-mail reminder function (#28)
要改后面网址,12306改了地址了
发自我的 iPhone
在 2019年4月17日,11:43,flyinghpluo <notifications@github.com> 写道:
博主,请问一下我运行了你的12306抢票软件代码,运行成功了,但只是跳出了12306铁路官网,并没有完成自动购票,需要自己手动操作
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
In this part, i add the function of sending e-mail just like your TODO said.