Subversion Repositories SmartDukaan

Rev

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

Rev 28307 Rev 28308
Line 208... Line 208...
208
 
208
 
209
		List<File> attachments = this.savePolicyDocs(insurancePolicy.getPolicyNumber(), byteArrayOutputStream, deviceImg, deviceInvoiceImg);
209
		List<File> attachments = this.savePolicyDocs(insurancePolicy.getPolicyNumber(), byteArrayOutputStream, deviceImg, deviceInvoiceImg);
210
		String messageText = MessageFormat.format(
210
		String messageText = MessageFormat.format(
211
				"Dear {0}, Thank you for purchasing Damage Protection Plan. Your Policy number is {1}",
211
				"Dear {0}, Thank you for purchasing Damage Protection Plan. Your Policy number is {1}",
212
				insurancePolicy.getCustomerFirstName(), insurancePolicy.getPolicyNumber());
212
				insurancePolicy.getCustomerFirstName(), insurancePolicy.getPolicyNumber());
-
 
213
		//TODO: add template if needed
213
		otpProcessor.sendSms("", messageText, insurancePolicy.getCustomerMobileNumber());
214
		otpProcessor.sendSms("", messageText, insurancePolicy.getCustomerMobileNumber());
214
		messageText += "\n Please find your Invoice and Documents submitted by you.";
215
		messageText += "\n Please find your Invoice and Documents submitted by you.";
215
		String subject = "Your Gadget Cop damage Protection purchase is successful";
216
		String subject = "Your Gadget Cop damage Protection purchase is successful";
216
		this.sendMailWithAttachments(insuranceModel.getCustomerEmailId() , subject, messageText, attachments);
217
		this.sendMailWithAttachments(insuranceModel.getCustomerEmailId() , subject, messageText, attachments);
217
 
218