mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Fix email function
This commit is contained in:
parent
45a3c664a2
commit
f744e32d7e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user