| Line 285... |
Line 285... |
| 285 |
String text = "Product : " +getProductName(this.item) +"\n"+
|
285 |
String text = "Product : " +getProductName(this.item) +"\n"+
|
| 286 |
"Item ID : " +this.item.getId() +"\n"+
|
286 |
"Item ID : " +this.item.getId() +"\n"+
|
| 287 |
"SUPC : " +this.supc +"\n"+
|
287 |
"SUPC : " +this.supc +"\n"+
|
| 288 |
"Updated Price : " +this.price;
|
288 |
"Updated Price : " +this.price;
|
| 289 |
try{
|
289 |
try{
|
| - |
|
290 |
if(voiUpdation){
|
| - |
|
291 |
mailer.sendSSLMessage(sendTo, "Price updated on Snapdeal VOI ( Item ID " + this.item.getId()+ " )",text, emailFromAddress , password,new ArrayList<File>());
|
| - |
|
292 |
}else{
|
| 290 |
mailer.sendSSLMessage(sendTo, "Price updated on Snapdeal ( Item ID " + this.item.getId()+ " )",text, emailFromAddress , password,new ArrayList<File>());
|
293 |
mailer.sendSSLMessage(sendTo, "Price updated on Snapdeal ( Item ID " + this.item.getId()+ " )",text, emailFromAddress , password,new ArrayList<File>());
|
| - |
|
294 |
}
|
| 291 |
}
|
295 |
}
|
| 292 |
catch(Exception e){
|
296 |
catch(Exception e){
|
| 293 |
logger.info("Exception"+e);
|
297 |
logger.info("Exception"+e);
|
| 294 |
}
|
298 |
}
|
| 295 |
ArrayList<Long> updateList = new ArrayList<Long>();
|
299 |
ArrayList<Long> updateList = new ArrayList<Long>();
|
| Line 317... |
Line 321... |
| 317 |
String text = "Product : " +getProductName(this.item) +"\n"+
|
321 |
String text = "Product : " +getProductName(this.item) +"\n"+
|
| 318 |
"Item ID : " +this.item.getId() +"\n"+
|
322 |
"Item ID : " +this.item.getId() +"\n"+
|
| 319 |
"SUPC : " +this.supc +"\n"+
|
323 |
"SUPC : " +this.supc +"\n"+
|
| 320 |
"Updated Price : " +this.price;
|
324 |
"Updated Price : " +this.price;
|
| 321 |
try {
|
325 |
try {
|
| - |
|
326 |
if(voiUpdation){
|
| - |
|
327 |
mailer.sendSSLMessage(sendTo, "Failed to update Price on Snapdeal VOI ( Item ID " + this.item.getId()+" )",text, emailFromAddress , password,new ArrayList<File>());
|
| - |
|
328 |
}else{
|
| 322 |
mailer.sendSSLMessage(sendTo, "Failed to update Price on Snapdeal ( Item ID " + this.item.getId()+" )",text, emailFromAddress , password,new ArrayList<File>());
|
329 |
mailer.sendSSLMessage(sendTo, "Failed to update Price on Snapdeal ( Item ID " + this.item.getId()+" )",text, emailFromAddress , password,new ArrayList<File>());
|
| - |
|
330 |
}
|
| 323 |
} catch (MessagingException e1) {
|
331 |
} catch (MessagingException e1) {
|
| 324 |
e1.printStackTrace();
|
332 |
e1.printStackTrace();
|
| 325 |
logger.info("Exception" + e1);
|
333 |
logger.info("Exception" + e1);
|
| 326 |
}
|
334 |
}
|
| 327 |
|
335 |
|