• 本帖最后由 lzdszdl 于 2018-10-23 12:47 编辑 *

(抄袭了各位大佬的jio本之后

邮件API是 https://www.sendcloud.net/
users = {
'username':'passwd',
'username':'passwd',
}
改成你的帐号密码就ok

params = {
"apiUser": "APIUSER",
"apiKey" : "APIKEY",
"to" : "你的邮箱",
"from" : "xxx@xxx",
"fromName" : "LOC签到报告员",
"subject" : "LOC签到报告",
"html": userdata
}

API信息 https://www.sendcloud.net/email/#/setting/apiUser
每天有一定额度,还是够用了

食用:python3 xxx.py
加入计划任务每天自动执行即可

"

  • [get_loc({"username":username,"password":password}) for username,password in users.items()]
  • users = {
  • 'username':'passwd',
  • 'username':'passwd',
  • }
  • userdata = ""
  • - post_loc(users)
  • - print(userdata)
  • url = "http://api.sendcloud.net/apiv2/mail/send"
  • params = {
  • "apiUser": "APIUSER",
  • "apiKey" : "APIKEY",
  • "to" : "你的邮箱",
  • "from" : "xxx@xxx",
  • "fromName" : "LOC签到报告员",
  • "subject" : "LOC签到报告",
  • "html": userdata
  • }
  • r = requests.post(url,data=params)
  • print(r.text)复制代码