Created
February 25, 2017 12:49
-
-
Save hseritt/c05257fdb958e319e404754d6a2bdf78 to your computer and use it in GitHub Desktop.
Django send mail function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core.mail import send_mail | |
... | |
send_mail( | |
NEW_CASE_EMAIL_SUBJECT.format(case.title), | |
NEW_CASE_EMAIL_MESSAGE.format( | |
case.title, | |
case.description, | |
case.id | |
), | |
EMAIL_SENDER, | |
[user.email,], | |
fail_silently=EMAIL_FAIL_SILENTLY, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment