Subversion Repositories SmartDukaan

Rev

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

Rev 11224 Rev 11275
Line 35... Line 35...
35
		emailUtils.sendEmail(sendTo,"------DONT PANIC--------TEST EMAIL--------","MAIL Body","build@shop2020.in","/home/Mobiles-Tablets-FBA-Sale.xls","/home/Mobiles-Tablets-FBA-body.html");
35
		emailUtils.sendEmail(sendTo,"------DONT PANIC--------TEST EMAIL--------","MAIL Body","build@shop2020.in","/home/Mobiles-Tablets-FBA-Sale.xls","/home/Mobiles-Tablets-FBA-body.html");
36
		System.out.println("Test Email Sent");
36
		System.out.println("Test Email Sent");
37
 
37
 
38
	}
38
	}
39
 
39
 
40
	/**
40
	/**	
41
	 * Utility method to send simple HTML email
41
	 * Utility method to send simple HTML email
42
	 * @param session
42
	 * @param session
43
	 * @param toEmail
43
	 * @param toEmail
44
	 * @param subject
44
	 * @param subject
45
	 * @param body
45
	 * @param body
46
	 */
46
	 */
47
	public void sendEmail(String recipients[], String subject, String body, String from, String filename,String htmlFileName) throws MessagingException {
47
	public void sendEmail(String recipients[], String subject, String body, String from, String filename,String htmlFileName) throws MessagingException {
-
 
48
		System.out.println("EmailUtils Email Start");
48
		try {
49
		try {
49
			BufferedReader bufferedReader = new BufferedReader(new FileReader(htmlFileName));
50
			BufferedReader bufferedReader = new BufferedReader(new FileReader(htmlFileName));
50
 
51
 
51
			StringBuffer htmlContent = new StringBuffer();
52
			StringBuffer htmlContent = new StringBuffer();
52
			String line = null;
53
			String line = null;