Subversion Repositories SmartDukaan

Rev

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

Rev 3405 Rev 3519
Line 146... Line 146...
146
        if (ActivityType.SEND_EMAIL_TO_CUSTOMER.equals(activity.getType())) {
146
        if (ActivityType.SEND_EMAIL_TO_CUSTOMER.equals(activity.getType())) {
147
            log.info("Sending mail");
147
            log.info("Sending mail");
148
            Client helperClient = new HelperClient().getClient();
148
            Client helperClient = new HelperClient().getClient();
149
            activity.setUserEmailId(helperClient.saveUserEmailForSending(
149
            activity.setUserEmailId(helperClient.saveUserEmailForSending(
150
                    customerEmailId, CRMConstants.CRM_EMAIL_SENDOR, subject,
150
                    customerEmailId, CRMConstants.CRM_EMAIL_SENDOR, subject,
151
                    "<pre>" + body + "</pre>", null, CRMConstants.CRM_EMAIL_TYPE));
151
                    body, null, CRMConstants.CRM_EMAIL_TYPE));
152
 
152
 
153
            activity.setDescription("Subject: " + subject + "\n\n" + "Body: "
153
            activity.setDescription("Subject: " + subject + "\n\n" + "Body: "
154
                    + body);
154
                    + body);
155
        }
155
        }
156
 
156