Subversion Repositories SmartDukaan

Rev

Rev 36053 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36053 Rev 36402
Line 307... Line 307...
307
 
307
 
308
    @Autowired
308
    @Autowired
309
    private ScanRecordRepository scanRecordRepository;
309
    private ScanRecordRepository scanRecordRepository;
310
 
310
 
311
    @Autowired
311
    @Autowired
312
    private JavaMailSender mailSender;
312
    private JavaMailSender gmailRelaySender;
313
 
313
 
314
    @Autowired
314
    @Autowired
315
    private LocationTrackingService locationTrackingService;
315
    private LocationTrackingService locationTrackingService;
316
 
316
 
317
    @Autowired
317
    @Autowired
Line 627... Line 627...
627
            Map<Integer, File> emailSnapshotMap = new HashMap<>();
627
            Map<Integer, File> emailSnapshotMap = new HashMap<>();
628
            for (int fofoId : partnerIds) {
628
            for (int fofoId : partnerIds) {
629
                body.append(String.format("<br/><img src=\"cid:%d\"/>", fofoId));
629
                body.append(String.format("<br/><img src=\"cid:%d\"/>", fofoId));
630
                emailSnapshotMap.put(fofoId, partnerSnapshotMap.get(fofoId));
630
                emailSnapshotMap.put(fofoId, partnerSnapshotMap.get(fofoId));
631
            }
631
            }
632
            Utils.sendEmbeddedHtmlMail(mailSender, new String[]{email}, new String[]{},
632
            Utils.sendEmbeddedHtmlMail(gmailRelaySender, new String[]{email}, new String[]{},
633
                    String.format("Franchise Screenshots - %s", FormattingUtils.formatDate(LocalDateTime.now())),
633
                    String.format("Franchise Screenshots - %s", FormattingUtils.formatDate(LocalDateTime.now())),
634
                    body.toString(), emailSnapshotMap);
634
                    body.toString(), emailSnapshotMap);
635
            LOGGER.info("Sent mail to {}", email);
635
            LOGGER.info("Sent mail to {}", email);
636
        }
636
        }
637
        driver.quit();
637
        driver.quit();