#NEWLINE# def send_mail( request ) : #NEWLINE# #INDENT# request . session [ 'emailAddress' ] = request . GET . get ( 'emailAddress' ) #NEWLINE# response = call_sendMail_endpoint ( request . session [ 'access_token' ] , request . session [ 'alias' ] , request . session [ 'emailAddress' ] ) #NEWLINE# if ( response == 202 ) : #NEWLINE# #INDENT# request . session [ 'showSuccess' ] = 'true' #NEWLINE# request . session [ 'showError' ] = 'false' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( response ) #NEWLINE# request . session [ 'showSuccess' ] = 'false' #NEWLINE# request . session [ 'showError' ] = 'true' #NEWLINE# #UNINDENT# request . session [ 'pageRefresh' ] = 'false' #NEWLINE# return HttpResponseRedirect ( reverse ( 'connect:main' ) )