X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=portal%2Fregistrationview.py;h=47c1cdce1b916ee99d5ae27568fc2204884eacfe;hp=455b17543dc20cb5101a9aec69e47dac44bc81f3;hb=864c51bf4c1330e2a1a1b5978b8a8dc5afe01763;hpb=bd87d8ccf9b9fe1b4a16271a9ca5ca044efbcc63 diff --git a/portal/registrationview.py b/portal/registrationview.py index 455b1754..47c1cdce 100644 --- a/portal/registrationview.py +++ b/portal/registrationview.py @@ -173,12 +173,9 @@ class RegistrationView (FreeAccessView): 'public_key' : public_key, } recipients = authority_get_pi_emails(request,reg_auth) + # backup email: if authority_get_pi_emails fails + recipients.append('support@myslice.info') - # We don't need to send this email to user. - # it's for the PI only - #if ctx['cc_myself']: - # recipients.append(ctx['email']) - msg = render_to_string('user_request_email.txt', ctx) send_mail("Onelab New User request for %s submitted"%reg_email, msg, 'support@myslice.info', recipients) return render(request, 'user_register_complete.html')