Commit 3b2e37b9 authored by Pratik Shrivastava's avatar Pratik Shrivastava

chore: add new bcc email

parent 63e6c032
......@@ -18,6 +18,8 @@ import java.io.ByteArrayInputStream;
import java.util.List;
import java.util.Objects;
import static com.example.LaMartin.constants.EmailConstants.*;
@Controller
@AllArgsConstructor(onConstructor_ = @__({@Autowired}))
public class AdmissionFormDAOController {
......@@ -144,20 +146,10 @@ public class AdmissionFormDAOController {
ByteArrayInputStream pdfStream = pdfService.convertHtmlToPdf(emailBody);
String[] bcc = {
"paritoshcanning@yahoo.co.in",
"secretary@lamartiniere.co",
"lmcao@lamartiniere.co",
"secretariat_lmb@lamartiniere.co"
};
String[] bcc = BCC_LM_BOYS;
if (!data.getSchool().equals("La Martiniere for Boys")) {
bcc = new String[]{
"paritoshcanning@yahoo.co.in",
"secretary@lamartiniere.co",
"lmcao@lamartiniere.co",
"lmgkolkata@gmail.com"
};
bcc = BCC_LM_GIRLS;
}
this.emailService.sendHtmlEmail(
data.getFatherEmail(),
......@@ -187,20 +179,10 @@ public class AdmissionFormDAOController {
ByteArrayInputStream pdfStream = pdfService.convertHtmlToPdf(emailBody);
String[] bcc = {
"paritoshcanning@yahoo.co.in",
"secretary@lamartiniere.co",
"lmcao@lamartiniere.co",
"secretariat_lmb@lamartiniere.co"
};
String[] bcc = BCC_LM_BOYS;
if (!data.getSchool().equals("La Martiniere for Boys")) {
bcc = new String[]{
"paritoshcanning@yahoo.co.in",
"secretary@lamartiniere.co",
"lmcao@lamartiniere.co",
"lmgkolkata@gmail.com"
};
bcc = BCC_LM_GIRLS;
}
this.emailService.sendHtmlEmail(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment