Skip to content

Commit

Permalink
Fix email recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
xenosf committed Mar 28, 2024
1 parent c78bdc9 commit 6d18ae4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ public EmailWrapper generateNewAccountRequestAcknowledgementEmail(AccountRequest
};
String content = Templates.populateTemplate(
EmailTemplates.INSTRUCTOR_NEW_ACCOUNT_REQUEST_ACKNOWLEDGEMENT, templateKeyValuePairs);
EmailWrapper email = getEmptyEmailAddressedToEmail(Config.SUPPORT_EMAIL);
EmailWrapper email = getEmptyEmailAddressedToEmail(emailAddress);
email.setType(EmailType.NEW_ACCOUNT_REQUEST_ACKNOWLEDGEMENT);
email.setSubjectFromType();
email.setContent(content);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void testGenerateNewAccountRequestAcknowledgementEmail_withComments_generatesSuc
AccountRequestStatus.PENDING,
"I Am Your Father");
EmailWrapper email = sqlEmailGenerator.generateNewAccountRequestAcknowledgementEmail(accountRequest);
verifyEmail(email, Config.SUPPORT_EMAIL, EmailType.NEW_ACCOUNT_REQUEST_ACKNOWLEDGEMENT,
verifyEmail(email, "darth-vader@sith.org", EmailType.NEW_ACCOUNT_REQUEST_ACKNOWLEDGEMENT,
"TEAMMATES: Acknowledgement of Instructor Account Request",
"/instructorNewAccountRequestAcknowledgementEmailWithComments.html");
}
Expand All @@ -55,7 +55,7 @@ void testGenerateNewAccountRequestAcknowledgementEmail_withNoComments_generatesS
AccountRequest accountRequest = new AccountRequest("maul@sith.org", "Maul", "Sith Order",
AccountRequestStatus.PENDING, null);
EmailWrapper email = sqlEmailGenerator.generateNewAccountRequestAcknowledgementEmail(accountRequest);
verifyEmail(email, Config.SUPPORT_EMAIL, EmailType.NEW_ACCOUNT_REQUEST_ACKNOWLEDGEMENT,
verifyEmail(email, "maul@sith.org", EmailType.NEW_ACCOUNT_REQUEST_ACKNOWLEDGEMENT,
"TEAMMATES: Acknowledgement of Instructor Account Request",
"/instructorNewAccountRequestAcknowledgementEmailWithNoComments.html");
}
Expand Down

0 comments on commit 6d18ae4

Please sign in to comment.