| Line 893... |
Line 893... |
| 893 |
String[] sendToArray = new String[] { storeGuyEntry.getKey() };
|
893 |
String[] sendToArray = new String[] { storeGuyEntry.getKey() };
|
| 894 |
Utils.sendMailWithAttachment(googleMailSender, sendToArray, null, "Franchise Investment Summary", "PFA",
|
894 |
Utils.sendMailWithAttachment(googleMailSender, sendToArray, null, "Franchise Investment Summary", "PFA",
|
| 895 |
fileName, new ByteArrayResource(baos.toByteArray()));
|
895 |
fileName, new ByteArrayResource(baos.toByteArray()));
|
| 896 |
}
|
896 |
}
|
| 897 |
sendTo = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
897 |
sendTo = Arrays.asList("tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com",
|
| 898 |
"prakash.rai@smartdukaan.com", "amit.gupta@shop2020.in");
|
898 |
"amit.babu@smartdukaan.com", "amit.gupta@shop2020.in", "manish.gupta@smartdukaan.com", "niranjan.kala@smartdukaan.com");
|
| 899 |
}
|
899 |
}
|
| 900 |
|
900 |
|
| 901 |
ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, rows);
|
901 |
ByteArrayOutputStream baos = FileUtil.getCSVByteStream(headers, rows);
|
| 902 |
String[] sendToArray = sendTo.toArray(new String[sendTo.size()]);
|
902 |
String[] sendToArray = sendTo.toArray(new String[sendTo.size()]);
|
| 903 |
Utils.sendMailWithAttachment(googleMailSender, sendToArray, null, "Franchise Investment Summary", "PFA",
|
903 |
Utils.sendMailWithAttachment(googleMailSender, sendToArray, null, "Franchise Investment Summary", "PFA",
|
| Line 1563... |
Line 1563... |
| 1563 |
notificationService.sendNotification(sendNotificationModel);
|
1563 |
notificationService.sendNotification(sendNotificationModel);
|
| 1564 |
}
|
1564 |
}
|
| 1565 |
// String saleReport = this.getDailySalesReportHtml(partnerSalesHeadersMap,
|
1565 |
// String saleReport = this.getDailySalesReportHtml(partnerSalesHeadersMap,
|
| 1566 |
// saleTargetReportModelMap);
|
1566 |
// saleTargetReportModelMap);
|
| 1567 |
String statewiseSaleReport = this.getStateWiseSales(saleTargetReportModelMap, partnerSalesHeadersMap);
|
1567 |
String statewiseSaleReport = this.getStateWiseSales(saleTargetReportModelMap, partnerSalesHeadersMap);
|
| 1568 |
String cc[] = { "tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com", "prakash.rai@smartdukaan.com",
|
1568 |
String cc[] = { "tarun.verma@smartdukaan.com", "kamini.sharma@smartdukaan.com", "amit.babu@smartdukaan.com",
|
| 1569 |
"niranjan.kala@smartdukaan.com", "up.singh@smartdukaan.com", "sm@smartdukaan.com" };
|
1569 |
"niranjan.kala@smartdukaan.com", "up.singh@smartdukaan.com", "sm@smartdukaan.com" };
|
| 1570 |
|
1570 |
|
| 1571 |
String subject = String.format("Sale till %s", String.format(timeString, now.format(timeFormatter)));
|
1571 |
String subject = String.format("Sale till %s", String.format(timeString, now.format(timeFormatter)));
|
| 1572 |
// this.sendMailOfHtmlFomat("amit.gupta@smartukaan.com", saleReport, cc,
|
1572 |
// this.sendMailOfHtmlFomat("amit.gupta@smartukaan.com", saleReport, cc,
|
| 1573 |
// subject);
|
1573 |
// subject);
|
| Line 2164... |
Line 2164... |
| 2164 |
MimeMessageHelper helper = new MimeMessageHelper(message, true);
|
2164 |
MimeMessageHelper helper = new MimeMessageHelper(message, true);
|
| 2165 |
|
2165 |
|
| 2166 |
helper.setSubject(subject);
|
2166 |
helper.setSubject(subject);
|
| 2167 |
helper.setText(messageText, true);
|
2167 |
helper.setText(messageText, true);
|
| 2168 |
helper.setTo(email);
|
2168 |
helper.setTo(email);
|
| 2169 |
InternetAddress senderAddress = new InternetAddress("noreply@smartdukaan.com", "Smatdukaan Alerts");
|
2169 |
InternetAddress senderAddress = new InternetAddress("noreply@smartdukaan.com", "Smartdukaan Alerts");
|
| 2170 |
helper.setFrom(senderAddress);
|
2170 |
helper.setFrom(senderAddress);
|
| 2171 |
mailSender.send(message);
|
2171 |
mailSender.send(message);
|
| 2172 |
|
2172 |
|
| 2173 |
}
|
2173 |
}
|
| 2174 |
|
2174 |
|