Subversion Repositories SmartDukaan

Rev

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

Rev 35362 Rev 35391
Line 45... Line 45...
45
                        "<strong>Address:</strong><br>" +
45
                        "<strong>Address:</strong><br>" +
46
                        trialForm.getAddressLine1() + "<br>" +
46
                        trialForm.getAddressLine1() + "<br>" +
47
                        (trialForm.getAddressLine2() != null ? trialForm.getAddressLine2() + "<br>" : "") +
47
                        (trialForm.getAddressLine2() != null ? trialForm.getAddressLine2() + "<br>" : "") +
48
                        trialForm.getCity() + ", " + trialForm.getState() + " - " + trialForm.getPincode() + "<br><br>" +
48
                        trialForm.getCity() + ", " + trialForm.getState() + " - " + trialForm.getPincode() + "<br><br>" +
49
                        "<strong>Required Actions:</strong><br>" +
49
                        "<strong>Required Actions:</strong><br>" +
50
                        "• Verify Details: Validate KYC documents and basic business information.<br>" +
50
                        " Verify Details: Validate KYC documents and basic business information.<br>" +
51
                        "• Assess Potential: Check the location feasibility and estimated sales potential.<br>" +
51
                        " Assess Potential: Check the location feasibility and estimated sales potential.<br>" +
52
                        "• Assign Territory: Assign the appropriate Area Sales Manager (ASM) and Business Manager (BM) in the system.<br><br>" +
52
                        " Assign Territory: Assign the appropriate Area Sales Manager (ASM) and Business Manager (BM) in the system.<br><br>" +
53
                        "Regards,<br>SmartDukaan Team";
53
                        "Regards,<br>SmartDukaan Team";
54
 
54
 
55
        String[] emailTo = {"kamini.sharma@smartdukaan.com"};
55
        String[] emailTo = {"kamini.sharma@smartdukaan.com"};
56
//        String[] emailTo = {"aman.gupta@smartdukaan.com"};
56
//        String[] emailTo = {"aman.gupta@smartdukaan.com"};
57
        String[] cc = {"vaibhav.tandon@smartdukaan.com"};
57
        String[] cc = {"vaibhav.tandon@smartdukaan.com"};
Line 59... Line 59...
59
        Utils.sendMailWithAttachments(mailSender, emailTo, cc, "New Trial Registration: " + trialForm.getBusinessName(), body);
59
        Utils.sendMailWithAttachments(mailSender, emailTo, cc, "New Trial Registration: " + trialForm.getBusinessName(), body);
60
 
60
 
61
 
61
 
62
    }
62
    }
63
 
63
 
-
 
64
    public void sentMailToTrialUser(TrialForm trialForm) throws Exception {
-
 
65
 
-
 
66
        String applicantName = trialForm.getFirstName() +
-
 
67
                (trialForm.getLastName() != null ? " " + trialForm.getLastName() : "");
-
 
68
 
-
 
69
        String body =
-
 
70
                "Hi " + applicantName + ",<br><br>" +
-
 
71
                        "Aapki <strong>SmartDukaan registration application</strong> humein mil gayi hai.<br><br>" +
-
 
72
                        "<strong>Current Status:</strong>  <strong>Verification In Progress</strong><br><br>" +
-
 
73
                        "Aapki application process ho rahi hai. Account activate karne ke liye, humari team aapke " +
-
 
74
                        "submit kiye gaye documents, business potential aur location verify kar rahi hai.<br><br>" +
-
 
75
 
-
 
76
                        "<strong>What’s Next?</strong><br>" +
-
 
77
                        " Verification process complete ki jaayegi. (Approx. 48 hours)<br>" +
-
 
78
                        "Account approve hote hi, aapke <strong>registered email</strong> par Login ID, Password, " +
-
 
79
                        "aur saari details bhej di jaayengi.<br>" +
-
 
80
                        "Login karte hi aapka <strong>30-Day Free Trial activate</strong> ho jaayega. <br><br>" +
-
 
81
 
-
 
82
                        "<strong>Support:</strong><br>" +
-
 
83
                        " 1800-270-0273<br>" +
-
 
84
                        "✉ helpdesk@smartdukaan.com<br><br>" +
-
 
85
 
-
 
86
                        "Thank you for choosing <strong>SmartDukaan</strong>.<br>" +
-
 
87
                        "We will reach out to you shortly.<br><br>" +
-
 
88
                        "Regards,<br>" +
-
 
89
                        "Team SmartDukaan";
-
 
90
 
-
 
91
        String[] emailTo = {trialForm.getEmail()};
-
 
92
        String[] cc = {};
-
 
93
        LOGGER.info("RegistrationBody - " + body);
-
 
94
        Utils.sendMailWithAttachments(
-
 
95
                mailSender,
-
 
96
                emailTo,
-
 
97
                cc,
-
 
98
                "Application Received! We are verifying your details.",
-
 
99
                body
-
 
100
        );
-
 
101
    }
-
 
102
 
64
    public void sentMailForTrialUserToSales(TrialForm trialForm) throws Exception {
103
    public void sentMailForTrialUserToSales(TrialForm trialForm) throws Exception {
65
        String body =
104
        String body =
66
                "<strong>Sales Team Action:</strong><br>" +
105
                "<strong>Sales Team Action:</strong><br>" +
67
                        "A new verified partner lead has been assigned to your territory. They have successfully passed the initial verification stage.<br><br>" +
106
                        "A new verified partner lead has been assigned to your territory. They have successfully passed the initial verification stage.<br><br>" +
68
                        "<strong>Lead Information:</strong><br>" +
107
                        "<strong>Lead Information:</strong><br>" +
Line 75... Line 114...
75
                        trialForm.getAddressLine1() + "<br>" +
114
                        trialForm.getAddressLine1() + "<br>" +
76
                        (trialForm.getAddressLine2() != null ? trialForm.getAddressLine2() + "<br>" : "") +
115
                        (trialForm.getAddressLine2() != null ? trialForm.getAddressLine2() + "<br>" : "") +
77
                        trialForm.getCity() + ", " + trialForm.getState() + " - " + trialForm.getPincode() + "<br><br>" +
116
                        trialForm.getCity() + ", " + trialForm.getState() + " - " + trialForm.getPincode() + "<br><br>" +
78
                        "<strong>Strategic Objective:</strong> The partner has expressed initial interest. Your goal is to move them beyond trial onboarding.<br><br>" +
117
                        "<strong>Strategic Objective:</strong> The partner has expressed initial interest. Your goal is to move them beyond trial onboarding.<br><br>" +
79
                        "<strong>Next Steps:</strong><br>" +
118
                        "<strong>Next Steps:</strong><br>" +
80
                        "• Contact Immediately: Call or visit the store within the next 24 hours.<br>" +
119
                        " Contact Immediately: Call or visit the store within the next 24 hours.<br>" +
81
                        "• The Pitch: Explain the SmartDukaan ecosystem and pitch the Full Franchise Partner Model. Emphasize the long-term higher margins, income boost, brand access, tech support, and branding benefits over the trial version.<br>" +
120
                        " The Pitch: Explain the SmartDukaan ecosystem and pitch the Full Franchise Partner Model. Emphasize the long-term higher margins, income boost, brand access, tech support, and branding benefits over the trial version.<br>" +
82
                        "• Update Status: Log your interaction and the partner's interest level in the app immediately after the meeting.<br><br>" +
121
                        " Update Status: Log your interaction and the partner's interest level in the app immediately after the meeting.<br><br>" +
83
                        "Good Luck,<br>" +
122
                        "Good Luck,<br>" +
84
                        "Regards,<br>SmartDukaan Team";
123
                        "Regards,<br>SmartDukaan Team";
85
 
124
 
86
        List<AuthUser> salesAuthUserList = csService.getAuthUserIds(ProfitMandiConstants.TICKET_CATEGORY_SALES, Arrays.asList(EscalationType.L3, EscalationType.L4, EscalationType.L5));
125
        List<AuthUser> salesAuthUserList = csService.getAuthUserIds(ProfitMandiConstants.TICKET_CATEGORY_SALES, Arrays.asList(EscalationType.L3, EscalationType.L4, EscalationType.L5));
87
        List<String> salesEmailList = new ArrayList<>();
126
        List<String> salesEmailList = new ArrayList<>();
Line 119... Line 158...
119
        LOGGER.info("cc list - " + Arrays.toString(cc));
158
        LOGGER.info("cc list - " + Arrays.toString(cc));
120
        Utils.sendMailWithAttachments(mailSender, emailTo, cc, "Store Code Creation Required for trial user" + trialForm.getBusinessName(), body);
159
        Utils.sendMailWithAttachments(mailSender, emailTo, cc, "Store Code Creation Required for trial user" + trialForm.getBusinessName(), body);
121
 
160
 
122
 
161
 
123
    }
162
    }
-
 
163
 
-
 
164
    public void sentRejectionMailToTrialUser(TrialForm trialForm) throws Exception {
-
 
165
 
-
 
166
        String applicantName = trialForm.getFirstName() +
-
 
167
                (trialForm.getLastName() != null ? " " + trialForm.getLastName() : "");
-
 
168
 
-
 
169
        String body =
-
 
170
                "Dear " + applicantName + ",<br><br>" +
-
 
171
                        "Humne aapki application carefully review ki hai. Hamein khed hai ki " +
-
 
172
                        "current eligibility criteria ke basis par aapka <strong>30-day free trial request</strong> " +
-
 
173
                        "decline kar diya gaya hai.<br><br>" +
-
 
174
 
-
 
175
                        "Agar aap is decision ka reason janna chahte hain ya koi issue resolve karna chahte hain, " +
-
 
176
                        "toh aap humein <strong>care@smartdukaan.com</strong> par email karein ya " +
-
 
177
                        "hamare Toll Free number <strong>1800-270-0273</strong> par call karein.<br><br>" +
-
 
178
 
-
 
179
                        "Apply karne ke liye dhanyavaad. Hum aapke future business endeavors ke liye " +
-
 
180
                        "shubhkamnayein dete hain. Agar future mein humari policies change hoti hain, " +
-
 
181
                        "toh hum aapse zaroor contact karenge.<br><br>" +
-
 
182
 
-
 
183
                        "Regards,<br>" +
-
 
184
                        "The SmartDukaan Team";
-
 
185
 
-
 
186
        String[] emailTo = {trialForm.getEmail()};
-
 
187
        String[] cc = {};
-
 
188
 
-
 
189
        Utils.sendMailWithAttachments(
-
 
190
                mailSender,
-
 
191
                emailTo,
-
 
192
                cc,
-
 
193
                "Update regarding your SmartDukaan Free Trial Request",
-
 
194
                body
-
 
195
        );
-
 
196
    }
-
 
197
 
-
 
198
    public void sendUpgradeRequestMail(TrialForm trialForm) throws Exception {
-
 
199
 
-
 
200
        String applicantName = trialForm.getFirstName() +
-
 
201
                (trialForm.getLastName() != null ? " " + trialForm.getLastName() : "");
-
 
202
 
-
 
203
        String body =
-
 
204
                "Dear " + applicantName + ",<br><br>" +
-
 
205
                        "SmartDukaan Franchise Partner program mein interest dikhane ke liye dhanyawaad.<br><br>" +
-
 
206
 
-
 
207
                        "Humein aapki request mil gayi hai. Humaari team jald hi aapse connect karegi " +
-
 
208
                        "taaki hum requirements aur onboarding process ke next steps discuss kar sakein.<br><br>" +
-
 
209
 
-
 
210
                        "Umeed hai ki hum is partnership ko naye level par le jayenge.<br><br>" +
-
 
211
 
-
 
212
                        "Regards,<br>" +
-
 
213
                        "The SmartDukaan Team";
-
 
214
 
-
 
215
        String[] emailTo = {trialForm.getEmail()};
-
 
216
        String[] cc = {};
-
 
217
 
-
 
218
        Utils.sendMailWithAttachments(
-
 
219
                mailSender,
-
 
220
                emailTo,
-
 
221
                cc,
-
 
222
                "We’ve received your interest for SmartDukaan Franchise",
-
 
223
                body
-
 
224
        );
-
 
225
    }
-
 
226
 
-
 
227
    public void sendInternalFranchiseUpgradeMail(TrialForm trialForm) throws Exception {
-
 
228
 
-
 
229
        String applicantName = trialForm.getFirstName() +
-
 
230
                (trialForm.getLastName() != null ? " " + trialForm.getLastName() : "");
-
 
231
 
-
 
232
        String body =
-
 
233
                "Hi Team,<br><br>" +
-
 
234
                        "We have received a new interest request for the <strong>SmartDukaan Franchise Partner upgrade</strong> via the app.<br><br>" +
-
 
235
 
-
 
236
                        "<strong>Trial User Details:</strong><br>" +
-
 
237
                        "Name: " + applicantName + "<br>" +
-
 
238
                        "Business Name: " + trialForm.getBusinessName() + "<br>" +
-
 
239
                        "Registered Mobile: " + trialForm.getMobile() + "<br>" +
-
 
240
                        "User ID: " + trialForm.getId() + "<br>" +
-
 
241
                        "Request Date: " + trialForm.getUpdatedOn() + "<br><br>" +
-
 
242
 
-
 
243
                        "<strong>Action Required:</strong><br>" +
-
 
244
                        "Please review the user's profile and initiate the verification/onboarding process immediately.<br><br>" +
-
 
245
 
-
 
246
                        "Best,<br>" +
-
 
247
                        "SmartDukaan System";
-
 
248
 
-
 
249
        String[] emailTo = {"internal-team@smartdukaan.com"};
-
 
250
        String[] cc = {};
-
 
251
 
-
 
252
        Utils.sendMailWithAttachments(
-
 
253
                mailSender,
-
 
254
                emailTo,
-
 
255
                cc,
-
 
256
                "Franchise Upgrade Request - " + applicantName + ", " + trialForm.getBusinessName(),
-
 
257
                body
-
 
258
        );
-
 
259
    }
-
 
260
 
124
}
261
}