游戏日报 grafana->png sendmail

This commit is contained in:
pengtao 2019-10-31 16:11:50 +08:00
parent 8c70aae3c0
commit c728585682

View File

@ -35,7 +35,7 @@ def show_index():
msg = Message(title, sender=sender, recipients=recipients)
msg.subject = f"test_游戏日报"
full_filename = os.path.join(app.config['UPLOAD_FOLDER'], 'img2019-10-31.png')
full_filename = os.path.join(PEOPLE_FOLDER, 'img2019-10-31.png')
msg.html = render_template('index.html', user_image=full_filename)
thread = Thread(target=send_async_email, args=[app, msg])