Subversion Repositories SmartDukaan

Rev

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

Rev 28354 Rev 28355
Line 856... Line 856...
856
			emailModel.put("pendingOrder", pendingOrder);
856
			emailModel.put("pendingOrder", pendingOrder);
857
			emailModel.put("date", dateTimeFormatter);
857
			emailModel.put("date", dateTimeFormatter);
858
 
858
 
859
			String[] customerEmail = null;
859
			String[] customerEmail = null;
860
			if (customer.getEmailId() != null) {
860
			if (customer.getEmailId() != null) {
861
				customerEmail = new String[] { customer.getEmailId(), "tejbeer.kaur@smartdukaan.com" };
861
				customerEmail = new String[] { customer.getEmailId() };
-
 
862
 
-
 
863
				List<String> bccTo = Arrays.asList("tejbeer.kaur@smartdukaan.com");
862
 
864
 
863
				emailService.sendMailWithAttachments("Order Cancellation", "order-cancellation.vm", emailModel,
865
				emailService.sendMailWithAttachments("Order Cancellation", "order-cancellation.vm", emailModel,
864
						customerEmail, null, null);
866
						customerEmail, null, bccTo.toArray(new String[0]));
865
 
867
 
866
			}
868
			}
867
		}
869
		}
868
 
870
 
869
		return responseSender.ok(true);
871
		return responseSender.ok(true);