| Line 14... |
Line 14... |
| 14 |
ReportGenerator repGen = new ReportGenerator();
|
14 |
ReportGenerator repGen = new ReportGenerator();
|
| 15 |
ByteArrayOutputStream baos = repGen.generateExcelStream(ReportGenerator.TYPE_BOTH);
|
15 |
ByteArrayOutputStream baos = repGen.generateExcelStream(ReportGenerator.TYPE_BOTH);
|
| 16 |
if(baos != null){
|
16 |
if(baos != null){
|
| 17 |
GmailUtils gm = new GmailUtils();
|
17 |
GmailUtils gm = new GmailUtils();
|
| 18 |
DateFormat dateFormatter = new SimpleDateFormat("yyyy.MM.dd");
|
18 |
DateFormat dateFormatter = new SimpleDateFormat("yyyy.MM.dd");
|
| 19 |
String[] recepients = {"amit.gupta@shop2020.in"};
|
19 |
String[] recepients = {"cnc.center@shop2020.in, ashutosh.saxena@shop2020.in, chaitanya.vats@shop2020.in"};
|
| 20 |
String subject = "Items that require your attention.";
|
20 |
String subject = "Items that require your attention.";
|
| 21 |
String from = "cnc.center@shop2020.in";
|
21 |
String from = "cnc.center@shop2020.in";
|
| 22 |
String password = "5h0p2o2o";
|
22 |
String password = "5h0p2o2o";
|
| 23 |
String fileName = "items."+ dateFormatter.format(new Date()) + ".xls";
|
23 |
String fileName = "items."+ dateFormatter.format(new Date()) + ".xls";
|
| 24 |
byte [] bytes = baos.toByteArray();
|
24 |
byte [] bytes = baos.toByteArray();
|