From f744e32d7e278cb4ee3b5e2d66a3099119ec05b8 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Mon, 27 Apr 2020 14:08:59 +0200 Subject: [PATCH] Fix email function --- app/email.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/email.py b/app/email.py index 88effaf9..b6dd4e4e 100644 --- a/app/email.py +++ b/app/email.py @@ -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)