From f691ef58933bf33033389a1a468f655af19c1e16 Mon Sep 17 00:00:00 2001 From: holyantony Date: Fri, 8 May 2015 11:59:21 +0530 Subject: Subject: Profile updation and Email notification Description: 1. Confirmation link on registration via email 2. Profile updation on registration confirmation 3. Email notification posting question and answer --- website/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'website/views.py') diff --git a/website/views.py b/website/views.py index 3009a6a..de93b7f 100644 --- a/website/views.py +++ b/website/views.py @@ -251,7 +251,8 @@ def new_question(request): question.body = cleaned_data['body'].encode('unicode_escape') question.views= 1 question.save() - + print "question" + print question.id # Sending email when a new question is asked subject = 'New Forum Question' message = """ @@ -271,6 +272,8 @@ def new_question(request): ['team@fossee.in'], headers={"Content-type":"text/html;charset=iso-8859-1"} ) + print message + print "****************" email.attach_alternative(message, "text/html") email.send(fail_silently=True) # End of email send -- cgit