Commit 32308a49 authored by Wallen姚文辉's avatar Wallen姚文辉

新增抄送人

parent d050c668
...@@ -32,7 +32,7 @@ def sendport(): ...@@ -32,7 +32,7 @@ def sendport():
yag = yagmail.SMTP( user=user, password=password, host='smtp.exmail.qq.com',port=465) yag = yagmail.SMTP( user=user, password=password, host='smtp.exmail.qq.com',port=465)
print(data["to"]) print(data["to"])
print(data["subject"]) print(data["subject"])
yag.send(data["to"],data.get("subject"),data.get("contents")) yag.send(to=data["to"],cc=data["cc"],subject=data.get("subject"),contents=data.get("contents"))
return jsonify({"code": 200, "message": f"{data.get('subject')}邮件发送成功"}),200 return jsonify({"code": 200, "message": f"{data.get('subject')}邮件发送成功"}),200
@tool.route('/testport/getproject', methods=["GET"]) @tool.route('/testport/getproject', methods=["GET"])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment