summaryrefslogtreecommitdiff
path: root/website/views.py
diff options
context:
space:
mode:
authorholyantony2015-05-08 11:59:21 +0530
committerholyantony2015-05-08 11:59:21 +0530
commitf691ef58933bf33033389a1a468f655af19c1e16 (patch)
tree44d9812876286b2a855af4673c2f620e671a35af /website/views.py
parent20998fcb52d55b25da2f63965c98e7b171d4f1ed (diff)
downloadFOSSEE-Forum-f691ef58933bf33033389a1a468f655af19c1e16.tar.gz
FOSSEE-Forum-f691ef58933bf33033389a1a468f655af19c1e16.tar.bz2
FOSSEE-Forum-f691ef58933bf33033389a1a468f655af19c1e16.zip
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
Diffstat (limited to 'website/views.py')
-rw-r--r--website/views.py5
1 files changed, 4 insertions, 1 deletions
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