From: Yasin Date: Tue, 21 Jan 2014 10:02:01 +0000 (+0100) Subject: REG: email is not cced to user. only to PIs X-Git-Tag: myslice-0.3-0~22 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=95684c90f87b0bad6c435ca398f9d50c4b9373e9;hp=88cc2d36009069514ab2c327a5c42a9e4592dc32 REG: email is not cced to user. only to PIs --- diff --git a/portal/registrationview.py b/portal/registrationview.py index e068aecf..26f9e67d 100644 --- a/portal/registrationview.py +++ b/portal/registrationview.py @@ -169,12 +169,13 @@ class RegistrationView (FreeAccessView): 'email' : reg_email, 'user_hrn' : user_hrn, 'public_key' : public_key, - 'cc_myself' : True # form.cleaned_data['cc_myself'] } recipients = authority_get_pi_emails(request,reg_auth) - - if ctx['cc_myself']: - recipients.append(ctx['email']) + + # 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)