Subversion Repositories SmartDukaan

Rev

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

Rev 33577 Rev 33578
Line 173... Line 173...
173
        LoiForm pod = partnerOnBoardingDataRepository.selectByEmailOrMobile(otp1.getMobile());
173
        LoiForm pod = partnerOnBoardingDataRepository.selectByEmailOrMobile(otp1.getMobile());
174
        String ownerName = pod.getFirstName();
174
        String ownerName = pod.getFirstName();
175
        String message = String.format(LOI_ACCEPTANCE_OTP_TEMPLATE, ownerName, otp);
175
        String message = String.format(LOI_ACCEPTANCE_OTP_TEMPLATE, ownerName, otp);
176
        this.sendSms(LOI_ACCEPTANCE_OTP_TEMPLATE_ID, message, otp1.getMobile());
176
        this.sendSms(LOI_ACCEPTANCE_OTP_TEMPLATE_ID, message, otp1.getMobile());
177
        String emailTo[] = {pod.getEmail()};
177
        String emailTo[] = {pod.getEmail()};
178
        String body = String.format(LOI_ACCEPTANCE_OTP_TEMPLATE, pod.getFirstName(), otp);
-
 
179
        Utils.sendMailWithAttachments(mailSender, emailTo, null, "LOI ACCEPTANCE OTP", body);
178
        Utils.sendMailWithAttachments(mailSender, emailTo, null, "LOI ACCEPTANCE OTP", message);
180
 
179
 
181
    }
180
    }
182
 
181
 
183
    public String sendSms(String dltTemplateId, String message, String mobileNumber) throws Exception {
182
    public String sendSms(String dltTemplateId, String message, String mobileNumber) throws Exception {
184
        Map<String, String> queryParams = new HashMap<>();
183
        Map<String, String> queryParams = new HashMap<>();