Skip to content
Snippets Groups Projects
Commit f744e32d authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Fix email function

parent 45a3c664
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ def create_message(recipient, subject, template, **kwargs): ...@@ -16,6 +16,7 @@ def create_message(recipient, subject, template, **kwargs):
@background @background
def send(app, msg): def send(msg, *args, **kwargs):
app = kwargs['app']
with app.app_context(): with app.app_context():
mail.send(msg) mail.send(msg)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment