Subversion Repositories SmartDukaan

Rev

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

Rev 28295 Rev 28296
Line 740... Line 740...
740
 
740
 
741
		}
741
		}
742
 
742
 
743
		String[] retailerEmail = { customRetailer.getEmail() };
743
		String[] retailerEmail = { customRetailer.getEmail() };
744
 
744
 
745
		/*
-
 
746
		 * List<String> sendTo = Arrays.asList("kamini.sharma@smartdukaan.com",
745
		List<String> sendTo = Arrays.asList("kamini.sharma@smartdukaan.com", "tarun.verma@smartdukaan.com",
747
		 * "tarun.verma@smartdukaan.com", "hemant.kaura@smartdukaan.com",
-
 
748
		 * "niranjan.kala@smartdukaan.com", "sm@smartdukaan.com",
746
				"hemant.kaura@smartdukaan.com", "niranjan.kala@smartdukaan.com", "sm@smartdukaan.com",
749
		 * "tejbeer.kaur@shop2020.in");
747
				"tejbeer.kaur@shop2020.in");
750
		 */
748
 
751
		List<String> authUserEmails = csService.getAuthUserByPartnerId(customRetailer.getPartnerId());
749
		List<String> authUserEmails = csService.getAuthUserByPartnerId(customRetailer.getPartnerId());
752
		logger.info("authUserEmails" + authUserEmails);
750
		logger.info("authUserEmails" + authUserEmails);
753
 
751
 
754
		this.sendMailWithAttachments("Order Confirmation", writer.toString(), retailerEmail);
752
		this.sendMailWithAttachments("Order Confirmation", writer.toString(), retailerEmail);
755
		// this.sendMailWithAttachments("Order Confirmation", writer.toString(),
753
		this.sendMailWithAttachments("Order Confirmation", writer.toString(),
756
		// sendTo.toArray(new String[sendTo.size()]));
754
				sendTo.toArray(new String[sendTo.size()]));
757
 
755
 
758
		if (!authUserEmails.isEmpty()) {
756
		if (!authUserEmails.isEmpty()) {
759
			this.sendMailWithAttachments("Order Confirmation", writer.toString(),
757
			this.sendMailWithAttachments("Order Confirmation", writer.toString(),
760
					authUserEmails.toArray(new String[authUserEmails.size()]));
758
					authUserEmails.toArray(new String[authUserEmails.size()]));
761
		}
759
		}