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; ...@@ -18,6 +18,8 @@ import java.io.ByteArrayInputStream;
import java.util.List; import java.util.List;
import java.util.Objects; import java.util.Objects;
import static com.example.LaMartin.constants.EmailConstants.*;
@Controller @Controller
@AllArgsConstructor(onConstructor_ = @__({@Autowired})) @AllArgsConstructor(onConstructor_ = @__({@Autowired}))
public class AdmissionFormDAOController { public class AdmissionFormDAOController {
...@@ -144,20 +146,10 @@ public class AdmissionFormDAOController { ...@@ -144,20 +146,10 @@ public class AdmissionFormDAOController {
ByteArrayInputStream pdfStream = pdfService.convertHtmlToPdf(emailBody); ByteArrayInputStream pdfStream = pdfService.convertHtmlToPdf(emailBody);
String[] bcc = { String[] bcc = BCC_LM_BOYS;
"paritoshcanning@yahoo.co.in",
"secretary@lamartiniere.co",
"lmcao@lamartiniere.co",
"secretariat_lmb@lamartiniere.co"
};
if (!data.getSchool().equals("La Martiniere for Boys")) { if (!data.getSchool().equals("La Martiniere for Boys")) {
bcc = new String[]{ bcc = BCC_LM_GIRLS;
"paritoshcanning@yahoo.co.in",
"secretary@lamartiniere.co",
"lmcao@lamartiniere.co",
"lmgkolkata@gmail.com"
};
} }
this.emailService.sendHtmlEmail( this.emailService.sendHtmlEmail(
data.getFatherEmail(), data.getFatherEmail(),
...@@ -187,20 +179,10 @@ public class AdmissionFormDAOController { ...@@ -187,20 +179,10 @@ public class AdmissionFormDAOController {
ByteArrayInputStream pdfStream = pdfService.convertHtmlToPdf(emailBody); ByteArrayInputStream pdfStream = pdfService.convertHtmlToPdf(emailBody);
String[] bcc = { String[] bcc = BCC_LM_BOYS;
"paritoshcanning@yahoo.co.in",
"secretary@lamartiniere.co",
"lmcao@lamartiniere.co",
"secretariat_lmb@lamartiniere.co"
};
if (!data.getSchool().equals("La Martiniere for Boys")) { if (!data.getSchool().equals("La Martiniere for Boys")) {
bcc = new String[]{ bcc = BCC_LM_GIRLS;
"paritoshcanning@yahoo.co.in",
"secretary@lamartiniere.co",
"lmcao@lamartiniere.co",
"lmgkolkata@gmail.com"
};
} }
this.emailService.sendHtmlEmail( 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