Subversion Repositories SmartDukaan

Rev

Rev 34204 | Rev 34313 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34204 Rev 34211
Line 1350... Line 1350...
1350
        LOGGER.info("emal" + customer.getEmailId());
1350
        LOGGER.info("emal" + customer.getEmailId());
1351
        String[] customerEmail = null;
1351
        String[] customerEmail = null;
1352
        if (customer.getEmailId() != null && !customer.getEmailId().isEmpty()) {
1352
        if (customer.getEmailId() != null && !customer.getEmailId().isEmpty()) {
1353
            customerEmail = new String[]{customer.getEmailId()};
1353
            customerEmail = new String[]{customer.getEmailId()};
1354
 
1354
 
1355
            List<String> bccTo = Arrays.asList("tejbeer.kaur@smartdukaan.com");
1355
            List<String> bccTo = Arrays.asList("vikas.jangra@smartdukaan.com");
1356
 
1356
 
1357
            emailService.sendMailWithAttachments("Order Cancellation", "order-cancellation.vm", emailModel,
1357
            emailService.sendMailWithAttachments("Order Cancellation", "order-cancellation.vm", emailModel,
1358
                    customerEmail, null, bccTo.toArray(new String[0]));
1358
                    customerEmail, null, bccTo.toArray(new String[0]));
1359
 
1359
 
1360
        }
1360
        }
Line 1486... Line 1486...
1486
        emailModel.put("date", dateTimeFormatter);
1486
        emailModel.put("date", dateTimeFormatter);
1487
        Customer customer = customerRepository.selectById(pendingOrder.getCustomerId());
1487
        Customer customer = customerRepository.selectById(pendingOrder.getCustomerId());
1488
        String[] customerEmail = null;
1488
        String[] customerEmail = null;
1489
        if (customer.getEmailId() != null && !customer.getEmailId().isEmpty()) {
1489
        if (customer.getEmailId() != null && !customer.getEmailId().isEmpty()) {
1490
            customerEmail = new String[]{customer.getEmailId()};
1490
            customerEmail = new String[]{customer.getEmailId()};
1491
            List<String> bccTo = Arrays.asList("tejbeer.kaur@smartdukaan.com");
1491
            List<String> bccTo = Arrays.asList("vikas.jangra@smartdukaan.com");
1492
 
1492
 
1493
            emailService.sendMailWithAttachments("Order Delivered with SmartDukaan", "order-delivered.vm", emailModel,
1493
            emailService.sendMailWithAttachments("Order Delivered with SmartDukaan", "order-delivered.vm", emailModel,
1494
                    customerEmail, null, bccTo.toArray(new String[0]));
1494
                    customerEmail, null, bccTo.toArray(new String[0]));
1495
 
1495
 
1496
        }
1496
        }