Subversion Repositories SmartDukaan

Rev

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

Rev 10267 Rev 10268
Line 181... Line 181...
181
			 String text = "Product : " +getProductName(this.item) +"\n"+ 
181
			 String text = "Product : " +getProductName(this.item) +"\n"+ 
182
			 "Item ID : " +this.item.getId() +"\n"+
182
			 "Item ID : " +this.item.getId() +"\n"+
183
			 "SUPC : " +this.supc +"\n"+
183
			 "SUPC : " +this.supc +"\n"+
184
			 "Updated Price : " +this.price;
184
			 "Updated Price : " +this.price;
185
			 try{
185
			 try{
186
			 mailer.sendSSLMessage(sendTo, "Price updated on Snapdeal Item ID " + this.item.getId(),text, emailFromAddress , password,new ArrayList<File>());
186
			 mailer.sendSSLMessage(sendTo, "Price updated on Snapdeal ( Item ID " + this.item.getId()+ " )",text, emailFromAddress , password,new ArrayList<File>());
187
			 }
187
			 }
188
			 catch(Exception e){
188
			 catch(Exception e){
189
				 logger.info("Exception"+e);
189
				 logger.info("Exception"+e);
190
			 }
190
			 }
191
			 ArrayList<Long> updateList = new ArrayList<Long>();
191
			 ArrayList<Long> updateList = new ArrayList<Long>();
Line 213... Line 213...
213
			 String text = "Product       : " +getProductName(this.item) +"\n"+ 
213
			 String text = "Product       : " +getProductName(this.item) +"\n"+ 
214
			 "Item ID       : " +this.item.getId() +"\n"+
214
			 "Item ID       : " +this.item.getId() +"\n"+
215
			 "SUPC          : " +this.supc +"\n"+
215
			 "SUPC          : " +this.supc +"\n"+
216
			 "Updated Price : " +this.price;
216
			 "Updated Price : " +this.price;
217
			 try {
217
			 try {
218
				 mailer.sendSSLMessage(sendTo, "Failed to update Price on Snapdeal Item ID " + this.item.getId(),text, emailFromAddress , password,new ArrayList<File>());
218
				 mailer.sendSSLMessage(sendTo, "Failed to update Price on Snapdeal ( Item ID " + this.item.getId()+" )",text, emailFromAddress , password,new ArrayList<File>());
219
			 } catch (MessagingException e1) {
219
			 } catch (MessagingException e1) {
220
				 e1.printStackTrace();
220
				 e1.printStackTrace();
221
				 logger.info("Exception" + e1);
221
				 logger.info("Exception" + e1);
222
			 }
222
			 }
223
 
223