diff --git a/app/celery/tasks.py b/app/celery/tasks.py index 3c63fa790..6b92d40c2 100644 --- a/app/celery/tasks.py +++ b/app/celery/tasks.py @@ -469,27 +469,6 @@ def registration_verification_template(name, url): ) -@notify_celery.task(name='email-registration-verification') -def email_registration_verification(encrypted_verification_message): - provider = provider_to_use('email', 'email-reset-password') - - verification_message = encryption.decrypt(encrypted_verification_message) - try: - email_from = '"GOV.UK Notify" <{}>'.format( - current_app.config['VERIFY_CODE_FROM_EMAIL_ADDRESS'] - ) - provider.send_email( - email_from, - verification_message['to'], - "Confirm GOV.UK Notify registration", - registration_verification_template( - name=verification_message['name'], - url=verification_message['url']) - ) - except EmailClientException as e: - current_app.logger.exception(e) - - def service_allowed_to_send_to(recipient, service): if not service.restricted: return True diff --git a/app/notifications/rest.py b/app/notifications/rest.py index a98cff336..7f4029a65 100644 --- a/app/notifications/rest.py +++ b/app/notifications/rest.py @@ -387,7 +387,6 @@ def send_notification(notification_type): send_email.apply_async(( service_id, notification_id, - '', encryption.encrypt(notification), datetime.utcnow().strftime(DATETIME_FORMAT) ), queue='email') diff --git a/tests/app/notifications/test_rest.py b/tests/app/notifications/test_rest.py index 22ea3da51..d8ffc2632 100644 --- a/tests/app/notifications/test_rest.py +++ b/tests/app/notifications/test_rest.py @@ -1003,7 +1003,6 @@ def test_should_allow_valid_email_notification(notify_api, sample_email_template app.celery.tasks.send_email.apply_async.assert_called_once_with( (str(sample_email_template.service_id), notification_id, - "", "something_encrypted", "2016-01-01T11:09:00.061258"), queue="email"