Subversion Repositories SmartDukaan

Rev

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

Rev 3499 Rev 3519
Line 313... Line 313...
313
            if (ActivityType.SEND_EMAIL_TO_CUSTOMER.equals(activity.getType())) {
313
            if (ActivityType.SEND_EMAIL_TO_CUSTOMER.equals(activity.getType())) {
314
                log.info("Sending mail");
314
                log.info("Sending mail");
315
                Client helperClient = new HelperClient().getClient();
315
                Client helperClient = new HelperClient().getClient();
316
                activity.setUserEmailId(helperClient.saveUserEmailForSending(
316
                activity.setUserEmailId(helperClient.saveUserEmailForSending(
317
                        customerEmailId, CRMConstants.CRM_EMAIL_SENDOR, subject,
317
                        customerEmailId, CRMConstants.CRM_EMAIL_SENDOR, subject,
318
                        "<pre>" + body + "</pre>", null, CRMConstants.CRM_EMAIL_TYPE));
318
                        body, null, CRMConstants.CRM_EMAIL_TYPE));
319
 
319
 
320
                // We change activityType to OTHER when pop up box for email
320
                // We change activityType to OTHER when pop up box for email
321
                // closes
321
                // closes
322
                activity.setDescription("Subject: " + subject + "\n\n"
322
                activity.setDescription("Subject: " + subject + "\n\n"
323
                        + "Body: " + body);
323
                        + "Body: " + body);