diff options
author | hardythe1 | 2015-05-06 15:52:15 +0530 |
---|---|---|
committer | hardythe1 | 2015-05-06 15:52:15 +0530 |
commit | 055bab04664a61aaa92cb8eef39ca2321917e04e (patch) | |
tree | f0afff1e68d270188ef338fdfb17c64d5b1ee59e | |
parent | dc6dd918349a046e30446d3087943eb241d8cc05 (diff) | |
download | Python-TBC-Interface-055bab04664a61aaa92cb8eef39ca2321917e04e.tar.gz Python-TBC-Interface-055bab04664a61aaa92cb8eef39ca2321917e04e.tar.bz2 Python-TBC-Interface-055bab04664a61aaa92cb8eef39ca2321917e04e.zip |
Send email once the proposal has been submitted
-rwxr-xr-x | tbc/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py index cd54ad2..ba97835 100755 --- a/tbc/views.py +++ b/tbc/views.py @@ -490,7 +490,7 @@ def SubmitProposal(request): proposed_books.append(tempbook) subject = "Python TBC: Proposal Acknowledgement" message = """Dear """+proposal.user.user.first_name+""",\n -Thank you for showing interest in contributing to Python Textbook Companion Activity.\n\nWe have received your proposal. Details of the books proposed by you are given below:\n\nBook Preference 1\nTitle: """+proposed_books[0].title+"""\nAuthor: """+proposed_books[0].author+"""\nEdition: """+proposed_books[0].edition+"""\nISBN: """+proposed_books[0].isbn+"""\nPublisher: """+proposed_books[0].publisher_place+"""\nYear of Publication: """+proposed_books[0].year_of_pub+"""\nBook Preference 2\nTitle: """+proposed_books[1].title+"""\nAuthor: """+proposed_books[1].author+"""\nEdition: """+proposed_books[1].edition+"""\nISBN: """+proposed_books[1].isbn+"""\nPublisher: """+proposed_books[1].publisher_place+"""\nYear of Publication: """+proposed_books[1].year_of_pub+"""\nBook Preference 3\nTitle: """+proposed_books[2].title+"""\nAuthor: """+proposed_books[2].author+"""\nEdition: """+proposed_books[2].edition+"""\nISBN: """+proposed_books[2].isbn+"""\nPublisher: """+proposed_books[2].publisher_place+"""\nYear of Publication: """+proposed_books[2].year_of_pub+"""\n\nPlese be patient while we review your proposal. You will be notified to submit sample notebook once the proposal hase been reviewed.\n\nRegards,\nPython TBC Team\nFOSSEE - IIT Bombay""" +Thank you for showing interest in contributing to Python Textbook Companion Activity.\n\nWe have received your proposal. Details of the books proposed by you are given below:\n\nBook Preference 1\nTitle: """+proposed_books[0].title+"""\nAuthor: """+proposed_books[0].author+"""\nEdition: """+proposed_books[0].edition+"""\nISBN: """+proposed_books[0].isbn+"""\nPublisher: """+proposed_books[0].publisher_place+"""\nYear of Publication: """+proposed_books[0].year_of_pub+"""\n\nBook Preference 2\nTitle: """+proposed_books[1].title+"""\nAuthor: """+proposed_books[1].author+"""\nEdition: """+proposed_books[1].edition+"""\nISBN: """+proposed_books[1].isbn+"""\nPublisher: """+proposed_books[1].publisher_place+"""\nYear of Publication: """+proposed_books[1].year_of_pub+"""\n\nBook Preference 3\nTitle: """+proposed_books[2].title+"""\nAuthor: """+proposed_books[2].author+"""\nEdition: """+proposed_books[2].edition+"""\nISBN: """+proposed_books[2].isbn+"""\nPublisher: """+proposed_books[2].publisher_place+"""\nYear of Publication: """+proposed_books[2].year_of_pub+"""\n\nPlese be patient while we review your proposal. You will be notified to submit sample notebook once the proposal hase been reviewed.\n\nRegards,\nPython TBC Team\nFOSSEE - IIT Bombay""" add_log(curr_user, proposal, CHANGE, 'Proposed Books', proposal.id) email_send(proposal.user.user.email, subject, message) return HttpResponseRedirect('/?proposal=submitted') |