Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Optional perhaps, but with this update, emails are sent automatically 'out of the box'
  • Loading branch information
gwiskur committed Oct 26, 2016
1 parent 5b061f5 commit d971628
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/email/__init__.py
Expand Up @@ -32,4 +32,5 @@ def send_email_from_template(template_prefix, from_address, to_address, **contex
message.html_body = html
message.text_body = text
message.put()
message.deliver()
return message.key

0 comments on commit d971628

Please sign in to comment.