Subversion Repositories SmartDukaan

Rev

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

Rev 28292 Rev 28293
Line 749... Line 749...
749
 
749
 
750
		this.sendMailWithAttachments("Order Confirmation", writer.toString(), retailerEmail);
750
		this.sendMailWithAttachments("Order Confirmation", writer.toString(), retailerEmail);
751
		this.sendMailWithAttachments("Order Confirmation", writer.toString(),
751
		this.sendMailWithAttachments("Order Confirmation", writer.toString(),
752
				sendTo.toArray(new String[sendTo.size()]));
752
				sendTo.toArray(new String[sendTo.size()]));
753
 
753
 
-
 
754
		if (!authUserEmails.isEmpty()) {
754
		this.sendMailWithAttachments("Order Confirmation", writer.toString(),
755
			this.sendMailWithAttachments("Order Confirmation", writer.toString(),
755
				authUserEmails.toArray(new String[sendTo.size()]));
756
					authUserEmails.toArray(new String[sendTo.size()]));
756
 
757
		}
757
		return responseSender.ok(pendingOrder);
758
		return responseSender.ok(pendingOrder);
758
	}
759
	}
759
 
760
 
760
	private void sendMailWithAttachments(String subject, String messageText, String[] email) throws Exception {
761
	private void sendMailWithAttachments(String subject, String messageText, String[] email) throws Exception {
761
		MimeMessage message = mailSender.createMimeMessage();
762
		MimeMessage message = mailSender.createMimeMessage();