| Line 726... |
Line 726... |
| 726 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
726 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
| 727 |
Calendar cal=GregorianCalendar.getInstance();
|
727 |
Calendar cal=GregorianCalendar.getInstance();
|
| 728 |
String emailFromAddress = "build@shop2020.in";
|
728 |
String emailFromAddress = "build@shop2020.in";
|
| 729 |
String password = "cafe@nes";
|
729 |
String password = "cafe@nes";
|
| 730 |
GmailUtils mailer = new GmailUtils();
|
730 |
GmailUtils mailer = new GmailUtils();
|
| 731 |
String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
|
731 |
String sendTo[] = new String[]{"vikram.raghav@shop2020.in","kshitij.sood@shop2020.in"};
|
| 732 |
/*String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
732 |
/*String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
| 733 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
733 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 734 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
734 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
| 735 |
*/
|
735 |
*/
|
| 736 |
String emailSubjectTxt = "Products back in stock on Snapdeal "+sdf.format(cal.getTime());
|
736 |
String emailSubjectTxt = "Products back in stock on Snapdeal "+sdf.format(cal.getTime());
|
| Line 749... |
Line 749... |
| 749 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
|
749 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
|
| 750 |
} catch (MessagingException e) {
|
750 |
} catch (MessagingException e) {
|
| 751 |
e.printStackTrace();
|
751 |
e.printStackTrace();
|
| 752 |
}
|
752 |
}
|
| 753 |
}
|
753 |
}
|
| - |
|
754 |
List<File> files = new ArrayList<File>();
|
| - |
|
755 |
files.add(new File(SNAPDEAL_INVENTORY_SHEET));
|
| - |
|
756 |
try {
|
| - |
|
757 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, files);
|
| - |
|
758 |
} catch (MessagingException e) {
|
| - |
|
759 |
e.printStackTrace();
|
| - |
|
760 |
}
|
| - |
|
761 |
|
| 754 |
|
762 |
|
| 755 |
}
|
763 |
}
|
| 756 |
|
764 |
|
| 757 |
}
|
765 |
}
|