Fix email function

This commit is contained in:
Patrick Jentsch 2020-04-27 14:08:59 +02:00
parent 45a3c664a2
commit f744e32d7e

View File

@ -16,6 +16,7 @@ def create_message(recipient, subject, template, **kwargs):
@background
def send(app, msg):
def send(msg, *args, **kwargs):
app = kwargs['app']
with app.app_context():
mail.send(msg)