fix: Email sent via ACE cannot use Braze as a mail-delivery backend unless

a valid LMS user ID is supplied. If Braze cannot be used, AWS SES is used
instead. However, sometimes the SES score can prevent email from being delivered.
Make a best effort in every case to obtain a user ID and send it along with
the email to be sent by ACE and Braze.

TNL-9417
This commit is contained in:
Julia Eskew
2021-12-20 14:13:36 -05:00
committed by Julia Eskew
parent 7f5b4a6a47
commit 89b3efc982
2 changed files with 25 additions and 7 deletions

View File

@@ -709,6 +709,7 @@ def create_and_enroll_user(
email_params.update({
'message_type': 'account_creation_and_enrollment',
'email_address': email,
'user_id': user.id,
'password': password,
'platform_name': configuration_helpers.get_value('platform_name', settings.PLATFORM_NAME),
})