diff options
author | hardythe1 | 2015-07-03 15:56:40 +0530 |
---|---|---|
committer | hardythe1 | 2015-07-03 15:56:40 +0530 |
commit | 3bf49ac69df179a731823679bb2e460a034851fd (patch) | |
tree | 8656227bf9dafb8e429c016cc1bca946729e0455 | |
parent | 96c7de100fc68ad1bc31d0ca10327dddc27e4bfb (diff) | |
download | SciPy2015-3bf49ac69df179a731823679bb2e460a034851fd.tar.gz SciPy2015-3bf49ac69df179a731823679bb2e460a034851fd.tar.bz2 SciPy2015-3bf49ac69df179a731823679bb2e460a034851fd.zip |
acknowledgement email
-rw-r--r-- | website/views.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/website/views.py b/website/views.py index b80b9c0..fe99104 100644 --- a/website/views.py +++ b/website/views.py @@ -24,7 +24,6 @@ def home(request): if request.method == "POST": sender_name = request.POST['name'] sender_email = request.POST['email'] - query = request.POST['message'] to = ('scipy@fossee.in',) subject = "Query from - "+sender_name message = request.POST['message'] @@ -57,6 +56,12 @@ def submitcfp(request): data.user = django_user data.save() context['proposal_submit'] = True + sender_name = "SciPy India 2015" + sender_email = "scipy@fossee.in" + subject = "Query from - "+sender_name + to = (social_user.email, ) + message = """Dear """+django_user.first_name+""",\n Thank you for showing interest & submitting a talk at SciPy India 2015 conference. We have received your proposal for the talk titled '"""+request.POST['title']+"""'. Reviewal of the proposals will start once the CFP closes. You will be notified regarding selection/rejection of your talk via email.\n\nThank You ! \n\nRegards,\nSciPy India 2015,\nFOSSEE - IIT Bombay""" + send_mail(subject, message, sender_email, to) return render_to_response('cfp.html', context) else: context['proposal_form'] = form |