| Line 919... |
Line 919... |
| 919 |
e.printStackTrace();
|
919 |
e.printStackTrace();
|
| 920 |
}
|
920 |
}
|
| 921 |
}
|
921 |
}
|
| 922 |
emailSubjectTxt = "Products out of stock on Snapdeal "+sdf.format(lastSentInventoryTime);
|
922 |
emailSubjectTxt = "Products out of stock on Snapdeal "+sdf.format(lastSentInventoryTime);
|
| 923 |
if(outOfStockItems.length() > 0){
|
923 |
if(outOfStockItems.length() > 0){
|
| 924 |
text = "<html><table border=\"1\" align=\"center\">"+tableHeader+backInStockItems.toString()+"</table></html>";
|
924 |
text = "<html><table border=\"1\" align=\"center\">"+tableHeader+outOfStockItems.toString()+"</table></html>";
|
| 925 |
try {
|
925 |
try {
|
| 926 |
mailer.sendSSLMessage(sendTo,emailSubjectTxt, emailFromAddress, password, text);
|
926 |
mailer.sendSSLMessage(sendTo,emailSubjectTxt, emailFromAddress, password, text);
|
| 927 |
//mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
|
927 |
//mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
|
| 928 |
} catch (MessagingException e) {
|
928 |
} catch (MessagingException e) {
|
| 929 |
e.printStackTrace();
|
929 |
e.printStackTrace();
|