| Line 20... |
Line 20... |
| 20 |
ReportGenerator repGen = new ReportGenerator();
|
20 |
ReportGenerator repGen = new ReportGenerator();
|
| 21 |
ByteArrayOutputStream baos = repGen.generateExcelStream(ReportGenerator.TYPE_BOTH);
|
21 |
ByteArrayOutputStream baos = repGen.generateExcelStream(ReportGenerator.TYPE_BOTH);
|
| 22 |
if(baos != null){
|
22 |
if(baos != null){
|
| 23 |
GmailUtils gm = new GmailUtils();
|
23 |
GmailUtils gm = new GmailUtils();
|
| 24 |
DateFormat dateFormatter = new SimpleDateFormat("yyyy.MM.dd");
|
24 |
DateFormat dateFormatter = new SimpleDateFormat("yyyy.MM.dd");
|
| 25 |
String[] recepients = {"cnc.center@shop2020.in", "amar.kumar@shop2020.in", "ashutosh.saxena@shop2020.in", "chaitnaya.vats@shop2020.in"};
|
25 |
String[] recepients = {"cnc.center@shop2020.in", "amar.kumar@shop2020.in", "chandan.kumar@spiceretail.co.in", "khushal.bhatia@shop2020.in", "chaitnaya.vats@shop2020.in"};
|
| 26 |
String subject = "Items that require your attention.";
|
26 |
String subject = "Items that require your attention.";
|
| 27 |
String from = "cnc.center@shop2020.in";
|
27 |
String from = "cnc.center@shop2020.in";
|
| 28 |
String password = "5h0p2o2o";
|
28 |
String password = "5h0p2o2o";
|
| 29 |
String fileName = "items."+ dateFormatter.format(new Date()) + ".xls";
|
29 |
String fileName = "items."+ dateFormatter.format(new Date()) + ".xls";
|
| 30 |
byte [] bytes = baos.toByteArray();
|
30 |
byte [] bytes = baos.toByteArray();
|