summaryrefslogtreecommitdiff
path: root/website/views.py
diff options
context:
space:
mode:
authorJayaram Pai2013-12-23 18:00:17 +0530
committerJayaram Pai2013-12-23 18:00:17 +0530
commit88d7ef4f6a2cb1d61652d6c4a863730e97ca23c4 (patch)
tree0801e6b4c13fa5334d75f63df5b8f70978d20723 /website/views.py
parentf9ff3f32ff09f514055089e25d8db099d339bcac (diff)
downloadFOSSEE-Forum-88d7ef4f6a2cb1d61652d6c4a863730e97ca23c4.tar.gz
FOSSEE-Forum-88d7ef4f6a2cb1d61652d6c4a863730e97ca23c4.tar.bz2
FOSSEE-Forum-88d7ef4f6a2cb1d61652d6c4a863730e97ca23c4.zip
replacing send_mail with EmailMessage in test view
Diffstat (limited to 'website/views.py')
-rw-r--r--website/views.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/website/views.py b/website/views.py
index a700169..8f60e90 100644
--- a/website/views.py
+++ b/website/views.py
@@ -6,7 +6,7 @@ from django.core.context_processors import csrf
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.decorators import login_required
from django.db.models import Q
-from django.core.mail import send_mail
+from django.core.mail import EmailMessage
from website.models import Question, Reply, Notification, TutorialDetails, TutorialResources
from website.forms import NewQuestionForm, ReplyQuesitionForm
@@ -340,6 +340,5 @@ def test(request):
Tutorial: Tokens <br>
<a href="http://google.com" target="_blank">http://google.com</a> <br>
"""
- send_mail(subject, message, 'forums', ['rush2jrp@gmail.com'],
- headers={"Content-type":"text/html;charset=iso-8859-1"}, fail_silently=True)
+ email = EmailMessage(subject, message, 'forums', ['rush2jrp@gmail.com'], headers={"Content-type":"text/html;charset=iso-8859-1"})
return HttpResponse("done")