email_text='Dear '+title_dict[commentary.requested_by.title]+''+commentary.requested_by.user.last_name+', \n\nThe Commentary Page you have requested, concerning publication with title '+commentary.pub_title+' by '+commentary.author_list+', has been activated. You are now welcome to submit your comments.'+'\n\nThank you for your contribution, \nThe SciPost Team.'
email_text='Dear '+title_dict[commentary.requested_by.title]+''+commentary.requested_by.user.last_name+', \n\nThe Commentary Page you have requested, concerning publication with title '+commentary.pub_title+' by '+commentary.author_list+', has been activated. You are now welcome to submit your comments.'+'\n\nThank you for your contribution, \nThe SciPost Team.'
email_text='Dear '+title_dict[commentary.requested_by.title]+''+commentary.requested_by.user.last_name+', \n\nThe Commentary Page you have requested, concerning publication with title '+commentary.pub_title+' by '+commentary.author_list+', has been activated (with slight modifications to your submitted details). You are now welcome to submit your comments.'+'\n\nThank you for your contribution, \nThe SciPost Team.'
email_text='Dear '+title_dict[commentary.requested_by.title]+''+commentary.requested_by.user.last_name+', \n\nThe Commentary Page you have requested, concerning publication with title '+commentary.pub_title+' by '+commentary.author_list+', has been activated (with slight modifications to your submitted details). You are now welcome to submit your comments.'+'\n\nThank you for your contribution, \nThe SciPost Team.'
email_text='Dear '+title_dict[commentary.requested_by.title]+''+commentary.requested_by.user.last_name+', \n\nThe Commentary Page you have requested, concerning publication with title '+commentary.pub_title+' by '+commentary.author_list+', has not been activated for the following reason: '+form.cleaned_data['refusal_reason']+'.\n\nThank you for your interest, \nThe SciPost Team.'
email_text='Dear '+title_dict[commentary.requested_by.title]+''+commentary.requested_by.user.last_name+', \n\nThe Commentary Page you have requested, concerning publication with title '+commentary.pub_title+' by '+commentary.author_list+', has not been activated for the following reason: '+form.cleaned_data['refusal_reason']+'.\n\nThank you for your interest, \nThe SciPost Team.'
email_text='The Comment you have submitted, concerning publication with title '
ifcomment.commentaryisnotNone:
email_text+comment.commentary.pub_title+' by '+comment.commentary.author_list
email_text+=comment.commentary.pub_title+' by '+comment.commentary.author_list
elifcomment.submissionisnotNone:
email_text+comment.submission.title+' by '+comment.submission.author_list
email_text+=comment.submission.title+' by '+comment.submission.author_list
email_text+=', has been rejected for the following reason:'+form.cleaned_data['refusal_reason']+'.\n\nThank you for your contribution, \nThe SciPost Team.'
email_text='The Author Reply you have submitted, concerning publication with title '
ifreply.commentaryisnotNone:
email_text+reply.commentary.pub_title+' by '+reply.commentary.author_list
email_text+=reply.commentary.pub_title+' by '+reply.commentary.author_list
elifreply.submissionisnotNone:
email_text+reply.submission.title+' by '+reply.submission.author_list
email_text+=reply.submission.title+' by '+reply.submission.author_list
email_text+=', has been rejected for the following reason:'+form.cleaned_data['refusal_reason']+'.\n\nThank you for your contribution, \nThe SciPost Team.'