Subversion Repositories SmartDukaan

Rev

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

Rev 31718 Rev 31722
Line 2259... Line 2259...
2259
                    baos = FileUtil.getCSVByteStream(headers, rows);
2259
                    baos = FileUtil.getCSVByteStream(headers, rows);
2260
                } catch (Exception e2) {
2260
                } catch (Exception e2) {
2261
                    e2.printStackTrace();
2261
                    e2.printStackTrace();
2262
                }
2262
                }
2263
                Attachment attachment = new Attachment("PartnerSalePerformance.csv", new ByteArrayResource(baos.toByteArray()));
2263
                Attachment attachment = new Attachment("PartnerSalePerformance.csv", new ByteArrayResource(baos.toByteArray()));
2264
 
-
 
2265
 
-
 
2266
                Utils.sendHtmlMailWithAttachments(googleMailSender, new String[]{email}, null, "Statewise " + subject, statewiseSaleReport, attachment);
2264
                Utils.sendHtmlMailWithAttachments(googleMailSender, new String[]{email}, null, "Statewise " + subject, statewiseSaleReport, attachment);
2267
                return;
-
 
2268
            }
2265
            }
2269
        }
2266
        }
2270
    }
2267
    }
2271
 
2268
 
2272
    private void sendMailOfHtmlFormat(String email, String body, String cc[], String subject)
2269
    private void sendMailOfHtmlFormat(String email, String body, String cc[], String subject)