Subversion Repositories SmartDukaan

Rev

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

Rev 24122 Rev 24131
Line 369... Line 369...
369
				new String[] { "amandeep.singh@smartdukaan.com", "tarun.verma@smartdukaan.com",
369
				new String[] { "amandeep.singh@smartdukaan.com", "tarun.verma@smartdukaan.com",
370
						"kamini.sharma@smartdukaan.com", "dhruv.kathpal@smartdukaan.com" },
370
						"kamini.sharma@smartdukaan.com", "dhruv.kathpal@smartdukaan.com" },
371
				"Partner Investment Summary", "PFA", fileName, new ByteArrayResource(baos.toByteArray()));
371
				"Partner Investment Summary", "PFA", fileName, new ByteArrayResource(baos.toByteArray()));
372
	}
372
	}
373
	
373
	
374
	public void sendMailWithAttachments(String email,String subject,String body) throws MessagingException, ProfitMandiBusinessException, IOException
374
	public void sendMailWithAttachments(String[] email,String subject,String body) throws MessagingException, ProfitMandiBusinessException, IOException
375
	{
375
	{
376
		MimeMessage message = mailSender.createMimeMessage();
376
		MimeMessage message = mailSender.createMimeMessage();
377
    	MimeMessageHelper helper = new MimeMessageHelper(message,true,CharEncoding.UTF_8);
377
    	MimeMessageHelper helper = new MimeMessageHelper(message,true,CharEncoding.UTF_8);
378
    	InputStream is=targetService.getDailySaleReportVsTarget();
378
    	InputStream is=targetService.getDailySaleReportVsTarget();
379
    	helper.setSubject(subject);
379
    	helper.setSubject(subject);