From 61146778777d9c35b455a0ad86eb8ee9f2ba89d6 Mon Sep 17 00:00:00 2001 From: Ashwin Date: Wed, 12 Jun 2024 11:53:40 +0530 Subject: [PATCH] [#13103] Account request form: No need to CC the email 'Acknowledgement of Instructor Account Request' (#13116) --- src/main/java/teammates/sqllogic/api/SqlEmailGenerator.java | 1 - src/test/java/teammates/sqllogic/api/SqlEmailGeneratorTest.java | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/main/java/teammates/sqllogic/api/SqlEmailGenerator.java b/src/main/java/teammates/sqllogic/api/SqlEmailGenerator.java index cc5fc4507e7..6e9683f5213 100644 --- a/src/main/java/teammates/sqllogic/api/SqlEmailGenerator.java +++ b/src/main/java/teammates/sqllogic/api/SqlEmailGenerator.java @@ -1021,7 +1021,6 @@ public EmailWrapper generateNewAccountRequestAcknowledgementEmail(AccountRequest EmailTemplates.INSTRUCTOR_NEW_ACCOUNT_REQUEST_ACKNOWLEDGEMENT, templateKeyValuePairs); EmailWrapper email = getEmptyEmailAddressedToEmail(emailAddress); email.setType(EmailType.NEW_ACCOUNT_REQUEST_ACKNOWLEDGEMENT); - email.setBcc(Config.SUPPORT_EMAIL); email.setSubjectFromType(); email.setContent(content); return email; diff --git a/src/test/java/teammates/sqllogic/api/SqlEmailGeneratorTest.java b/src/test/java/teammates/sqllogic/api/SqlEmailGeneratorTest.java index f984b10f46c..f454a8b30f5 100644 --- a/src/test/java/teammates/sqllogic/api/SqlEmailGeneratorTest.java +++ b/src/test/java/teammates/sqllogic/api/SqlEmailGeneratorTest.java @@ -47,7 +47,6 @@ void testGenerateNewAccountRequestAcknowledgementEmail_withComments_generatesSuc EmailWrapper email = sqlEmailGenerator.generateNewAccountRequestAcknowledgementEmail(accountRequest); verifyEmail(email, "darth-vader@sith.org", EmailType.NEW_ACCOUNT_REQUEST_ACKNOWLEDGEMENT, "TEAMMATES: Acknowledgement of Instructor Account Request", - Config.SUPPORT_EMAIL, "/instructorNewAccountRequestAcknowledgementEmailWithComments.html"); } @@ -58,7 +57,6 @@ void testGenerateNewAccountRequestAcknowledgementEmail_withNoComments_generatesS EmailWrapper email = sqlEmailGenerator.generateNewAccountRequestAcknowledgementEmail(accountRequest); verifyEmail(email, "maul@sith.org", EmailType.NEW_ACCOUNT_REQUEST_ACKNOWLEDGEMENT, "TEAMMATES: Acknowledgement of Instructor Account Request", - Config.SUPPORT_EMAIL, "/instructorNewAccountRequestAcknowledgementEmailWithNoComments.html"); }