summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayaram Pai2013-12-23 18:10:19 +0530
committerJayaram Pai2013-12-23 18:10:19 +0530
commitf70e8972127d69eae5d9f7398aa7be96824618bb (patch)
treecfcac32c13fc34faa013411d24d37816a7b2c5cc
parentff78a703d75c852953d081618cfc7b8d78510589 (diff)
downloadFOSSEE-Forum-f70e8972127d69eae5d9f7398aa7be96824618bb.tar.gz
FOSSEE-Forum-f70e8972127d69eae5d9f7398aa7be96824618bb.tar.bz2
FOSSEE-Forum-f70e8972127d69eae5d9f7398aa7be96824618bb.zip
added attach_alternative to email
-rw-r--r--website/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/website/views.py b/website/views.py
index 9b95e4e..f14b3f8 100644
--- a/website/views.py
+++ b/website/views.py
@@ -341,5 +341,6 @@ def test(request):
<a href="http://google.com" target="_blank">http://google.com</a> <br>
"""
email = EmailMessage(subject, message, 'forums', ['rush2jrp@gmail.com'], headers={"Content-type":"text/html;charset=iso-8859-1"})
+ email.attach_alternative(message, "text/html")
email.send()
return HttpResponse("done")