diff options
author | Sashi20 | 2022-01-17 14:56:37 +0530 |
---|---|---|
committer | GitHub | 2022-01-17 14:56:37 +0530 |
commit | da60fbc5e8c035072dc3d9074ebf3a43ebbab018 (patch) | |
tree | 6354840040a268c8d663d76d1ec6f0fcbbbe6d31 | |
parent | 80fd44da5e0a9a8a190be51a7a2885cfec61a948 (diff) | |
parent | 32209c2e6dd8150461d9e0ed10325539c5e368c9 (diff) | |
download | SciPy2021-da60fbc5e8c035072dc3d9074ebf3a43ebbab018.tar.gz SciPy2021-da60fbc5e8c035072dc3d9074ebf3a43ebbab018.tar.bz2 SciPy2021-da60fbc5e8c035072dc3d9074ebf3a43ebbab018.zip |
Merge pull request #12 from Sashi20/development
Update proposal comments email template
-rwxr-xr-x | website/views.py | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/website/views.py b/website/views.py index a867b5e..c42aef4 100755 --- a/website/views.py +++ b/website/views.py @@ -449,13 +449,12 @@ def comment_abstract(request, proposal_id=None): sender_email = TO_EMAIL to = (proposal.user.email, TO_EMAIL) if proposal.proposal_type == 'ABSTRACT': - subject = "SciPy India 2021 - Comment on Your talk Proposal" + subject = "SciPy India 2021 - Comment on your talk Proposal" message = """ - Dear {0}, <br><br> - There is a comment posted on your proposal for the talk titled <b>{1}</b>.<br> - Once we receive your response, you will be notified regarding further comments/acceptance/ rejection of your talk/workshop via email. - Log in to view the comments on your submission.<br><br> - Thank You ! <br><br>Regards,<br>SciPy India 2021,<br>FOSSEE - IIT Bombay. +Dear {0}, \n\n +There is a comment posted on your proposal for the talk titled "{1}".\n +Log in to view the comments on your submission.\n\n +Thank You ! \n\nRegards,\nSciPy India 2021,\nFOSSEE - IIT Bombay. """.format( proposal.user.first_name, proposal.title, @@ -463,26 +462,25 @@ def comment_abstract(request, proposal_id=None): str(proposal.id), ) elif proposal.proposal_type == 'WORKSHOP': - subject = "SciPy India 2021 - Comment on Your Workshop Proposal" + subject = "SciPy India 2021 - Comment on your Workshop Proposal" message = """ - Dear {0}, <br><br> - There is a comment posted on your proposal for the workshop titled <b>{1}</b>.<br> - Once we receive your response, you will be notified regarding further comments/acceptance/ rejection of your talk/workshop via email. - Log in to view the comments on your submission.<br><br> - Thank You ! <br><br>Regards,<br>SciPy India 2021,<br>FOSSEE - IIT Bombay. +Dear {0}, \n\n +There is a comment posted on your proposal for the workshop titled "{1}".\n +Log in to view the comments on your submission.\n\n +Thank You ! \n\nRegards,\nSciPy India 2021,\nFOSSEE - IIT Bombay. """.format( proposal.user.first_name, proposal.title, 'http://scipy.in/2021/abstract-details/' + str(proposal.id), ) - #email = EmailMultiAlternatives( - # subject, '', - # sender_email, to, - # headers={"Content-type": "text/html;charset=iso-8859-1"} - #) - #email.attach_alternative(message, "text/html") - #email.send(fail_silently=True) + email = EmailMultiAlternatives( + subject, '', + sender_email, to, + headers={"Content-type": "text/html;charset=iso-8859-1"} + ) + email.attach_alternative(message, "text/html") + email.send(fail_silently=True) proposal.status = "Commented" proposal.save() rates = Ratings.objects.filter(proposal=proposal) |