aboutsummaryrefslogtreecommitdiffstats
path: root/famille.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-11-13 02:01:54 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2012-11-13 02:02:44 +0100
commitfe8418059997cfa7881c8933e683b56ea70515f9 (patch)
tree0df5780cb18adf6343522d3e780a726a949e7825 /famille.py
parentc27f97c5b6e5bb17065a1d30ac81d009c8bb1ef4 (diff)
downloadfamille-flask-fe8418059997cfa7881c8933e683b56ea70515f9.tar.gz
Send notification emails as html
Diffstat (limited to 'famille.py')
-rw-r--r--famille.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/famille.py b/famille.py
index c73efbb..fd7893c 100644
--- a/famille.py
+++ b/famille.py
@@ -103,7 +103,7 @@ def add_news():
emails = query_db("SELECT email from users where notify=1")
emails = [email["email"] for email in emails]
message = Message(request.form['title'], sender="news.horel@gmail.com")
- message.body = content_cache
+ message.html = content_cache
message.recipients = emails
mail.send(message)