1
enzo113 2017-06-25 15:15:42 +08:00 1
自己写一个,有个 Python 包叫 yagmail,用了之后发邮件很简单
|
4
fate0 2017-06-25 15:29:11 +08:00
|
5
Hzzone 2017-06-25 15:39:01 +08:00
你自己写一个也用不了几行啊
|
7
xss 2017-06-25 19:29:34 +08:00
sendmail
|
8
gamexg 2017-06-25 19:38:54 +08:00 via Android
微信如何?
server 酱 |
9
enzo113 2017-06-26 00:06:06 +08:00
之前好像配置 smtp 还是啥命令行 mail 工具的时候很难搞,我倒是觉得有必要造个轮子,口号就叫 console mail for humans
|
10
enzo113 2017-06-26 00:06:30 +08:00 1
不过换个思路,题主也可以用 alertover,通过一个 api 给你发推送
|
11
kamen OP @enzo113 #10 这个工具不错,几分钟就搭建好了,不过我要吐槽一下,这网站也是够烂的,动不动就访问不了,还有推送消息的安全性也值得怀疑,不过我只发一个提醒,问题不大。还有就是他家的 APP 没有在 play 上架,推送消息靠 app 的 push service,跟邮件提醒比起来太不优雅。
|
14
yylzcom 2017-06-26 15:27:44 +08:00
|
15
yylzcom 2017-06-26 15:33:15 +08:00
补充上一帖,上一帖只是用命令行调用 smtp 发信的(这样用 gmail 或者其它邮件服务提供商发信不会进垃圾箱)
至于执行完脚本发送邮件,4 兄弟的就可以(我自己是写在脚本最后……) |
16
rxzxf1993 2017-06-26 16:13:37 +08:00
mail 总是发不了 不知道为啥
|
17
rxzxf1993 2017-06-26 16:14:52 +08:00
```
Jun 26 15:33:11 instance-4 sendmail[24051]: v5PEWAbc005750: to=<[email protected]>, ctladdr=<[email protected]> (502/503), delay=17:01:01, xdelay=00:16:00, mailer=esmtp, pri=1501953, relay=mx1.qq.com. [183.57.48.35], dsn=4.0.0, stat=Deferred: Connection timed out with mx1.qq.com. Jun 26 15:33:11 instance-4 sendmail[24051]: v5PCRk9k003817: to=<[email protected]>, ctladdr=<[email protected]> (502/503), delay=19:05:25, xdelay=00:00:00, mailer=esmtp, pri=1772051, relay=mx1.qq.com., dsn=4.0.0, stat=Deferred: Connection timed out with mx1.qq.com. Jun 26 15:33:11 instance-4 sendmail[24051]: v5PCRkCk003813: to=<[email protected]>, ctladdr=<[email protected]> (502/503), delay=19:05:25, xdelay=00:00:00, mailer=esmtp, pri=1839169, relay=mx1.qq.com., dsn=4.0.0, stat=Deferred: Connection timed out with mx1.qq.com. Jun 26 15:33:11 instance-4 sendmail[24051]: v5PCwxA3004320: to=<[email protected]>, ctladdr=<[email protected]> (502/503), delay=18:34:12, xdelay=00:00:00, mailer=esmtp, pri=1839783, relay=mx1.qq.com., dsn=4.0.0, stat=Deferred: Connection timed out with mx1.qq.com. Jun 26 15:33:11 instance-4 sendmail[24051]: v5PCRlaj003825: to=<[email protected]>, ctladdr=<[email protected]> (502/503), delay=19:05:24, xdelay=00:00:00, mailer=esmtp, pri=1839983, relay=mx1.qq.com., dsn=4.0.0, stat=Deferred: Connection timed out with mx1.qq.com. ``` |