| Line 391... |
Line 391... |
| 391 |
Calendar cal=GregorianCalendar.getInstance();
|
391 |
Calendar cal=GregorianCalendar.getInstance();
|
| 392 |
String emailFromAddress = "build@shop2020.in";
|
392 |
String emailFromAddress = "build@shop2020.in";
|
| 393 |
String password = "cafe@nes";
|
393 |
String password = "cafe@nes";
|
| 394 |
GmailUtils mailer = new GmailUtils();
|
394 |
GmailUtils mailer = new GmailUtils();
|
| 395 |
try {
|
395 |
try {
|
| 396 |
if(total_orders==processed_orders){
|
396 |
if(total_orders==processed_orders && total_orders > 0){
|
| 397 |
String emailSubjectTxt = total_orders + " Snapdeal Orders Created Successfully "+sdf.format(cal.getTime());
|
397 |
String emailSubjectTxt = total_orders + " Snapdeal Orders Created Successfully "+sdf.format(cal.getTime());
|
| 398 |
String text = "Order is now available for processing on Order Management Dashboard";
|
398 |
String text = "Order is now available for processing on Order Management Dashboard";
|
| 399 |
String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
399 |
String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
| 400 |
//String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in","khushal.bhatia@shop2020.in","rajveer.singh@saholic.com","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com"};
|
400 |
//String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in","khushal.bhatia@shop2020.in","rajveer.singh@saholic.com","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com"};
|
| 401 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
|
401 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
|
| 402 |
}
|
402 |
}
|
| 403 |
else{
|
403 |
else if(total_orders > 0){
|
| 404 |
int failed_orders = total_orders - processed_orders;
|
404 |
int failed_orders = total_orders - processed_orders;
|
| 405 |
String emailSubjectTxt = failed_orders + " Snapdeal Orders Failed while creation "+sdf.format(cal.getTime());
|
405 |
String emailSubjectTxt = failed_orders + " Snapdeal Orders Failed while creation "+sdf.format(cal.getTime());
|
| 406 |
String text = sb.toString();
|
406 |
String text = sb.toString();
|
| 407 |
String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
407 |
String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
| 408 |
//String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in","khushal.bhatia@shop2020.in","rajveer.singh@saholic.com","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com"};
|
408 |
//String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in","khushal.bhatia@shop2020.in","rajveer.singh@saholic.com","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com"};
|