diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2012-11-13 02:01:54 +0100 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2012-11-13 02:02:44 +0100 |
| commit | fe8418059997cfa7881c8933e683b56ea70515f9 (patch) | |
| tree | 0df5780cb18adf6343522d3e780a726a949e7825 | |
| parent | c27f97c5b6e5bb17065a1d30ac81d009c8bb1ef4 (diff) | |
| download | famille-flask-fe8418059997cfa7881c8933e683b56ea70515f9.tar.gz | |
Send notification emails as html
| -rw-r--r-- | famille.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
