| Line 584... |
Line 584... |
| 584 |
response.setHeader("Content-Type", "text/javascript");
|
584 |
response.setHeader("Content-Type", "text/javascript");
|
| 585 |
|
585 |
|
| 586 |
ServletOutputStream sos;
|
586 |
ServletOutputStream sos;
|
| 587 |
try {
|
587 |
try {
|
| 588 |
sos = response.getOutputStream();
|
588 |
sos = response.getOutputStream();
|
| 589 |
if(sb!=null){
|
589 |
if(sb.toString().equalsIgnoreCase("")){
|
| 590 |
sos.write(sb.toString().getBytes());
|
590 |
sos.write(sb.toString().getBytes());
|
| 591 |
}
|
591 |
}
|
| 592 |
else{
|
592 |
else{
|
| 593 |
if(orders_processed!=0){
|
593 |
if(orders_processed!=0){
|
| 594 |
sos.write("Orders Created Successfully".toString().getBytes());
|
594 |
sos.write("Orders Created Successfully".toString().getBytes());
|
| Line 617... |
Line 617... |
| 617 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
617 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 618 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
618 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
| 619 |
*/
|
619 |
*/
|
| 620 |
try {
|
620 |
try {
|
| 621 |
logger.info("Before Sending Emails");
|
621 |
logger.info("Before Sending Emails");
|
| 622 |
if(sb!=null){
|
622 |
if(sb.toString().equalsIgnoreCase("")){
|
| 623 |
String emailSubjectTxt = "Flipkart Orders Created Successfully (Check Alerts)"+sdf.format(cal.getTime());
|
623 |
String emailSubjectTxt = "Flipkart Orders Created Successfully (Check Alerts)"+sdf.format(cal.getTime());
|
| 624 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, sb.toString(), emailFromAddress, password, new ArrayList<File>());
|
624 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, sb.toString(), emailFromAddress, password, new ArrayList<File>());
|
| 625 |
logger.info("Sending Emails Flipkart Orders Created Successfully (Check Alerts)");
|
625 |
logger.info("Sending Emails Flipkart Orders Created Successfully (Check Alerts)");
|
| 626 |
}
|
626 |
}
|
| 627 |
else{
|
627 |
else{
|