| Line 806... |
Line 806... |
| 806 |
}
|
806 |
}
|
| 807 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
807 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
| 808 |
String emailFromAddress = "build@shop2020.in";
|
808 |
String emailFromAddress = "build@shop2020.in";
|
| 809 |
String password = "cafe@nes";
|
809 |
String password = "cafe@nes";
|
| 810 |
GmailUtils mailer = new GmailUtils();
|
810 |
GmailUtils mailer = new GmailUtils();
|
| 811 |
String sendTo[] = new String[]{"vikram.raghav@shop2020.in","rajveer.singh@shop2020.in"};
|
811 |
//String sendTo[] = new String[]{"vikram.raghav@shop2020.in","rajveer.singh@shop2020.in"};
|
| 812 |
//String sendTo[] = new String[]{"vikram.raghav@shop2020.in","kshitij.sood@shop2020.in"};
|
812 |
//String sendTo[] = new String[]{"vikram.raghav@shop2020.in","kshitij.sood@shop2020.in"};
|
| 813 |
/*String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
813 |
String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
| 814 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
814 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 815 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
815 |
"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
|
| 816 |
*/
|
- |
|
| 817 |
String emailSubjectTxt = "Products back in stock on Snapdeal "+sdf.format(lastSentInventoryTime);
|
816 |
String emailSubjectTxt = "Products back in stock on Snapdeal "+sdf.format(lastSentInventoryTime);
|
| 818 |
String text = backInStockItems.toString();
|
817 |
String text = backInStockItems.toString();
|
| 819 |
if(text.length() > 0){
|
818 |
if(text.length() > 0){
|
| 820 |
try {
|
819 |
try {
|
| 821 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
|
820 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
|
| Line 830... |
Line 829... |
| 830 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
|
829 |
mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
|
| 831 |
} catch (MessagingException e) {
|
830 |
} catch (MessagingException e) {
|
| 832 |
e.printStackTrace();
|
831 |
e.printStackTrace();
|
| 833 |
}
|
832 |
}
|
| 834 |
}
|
833 |
}
|
| 835 |
List<File> files = new ArrayList<File>();
|
834 |
/* List<File> files = new ArrayList<File>();
|
| 836 |
files.add(new File(SNAPDEAL_INVENTORY_SHEET));
|
835 |
files.add(new File(SNAPDEAL_INVENTORY_SHEET));
|
| 837 |
try {
|
836 |
try {
|
| 838 |
mailer.sendSSLMessage(sendTo,"Inventory File",feedresponse, emailFromAddress, password, files);
|
837 |
mailer.sendSSLMessage(sendTo,"Inventory File",feedresponse, emailFromAddress, password, files);
|
| 839 |
} catch (MessagingException e) {
|
838 |
} catch (MessagingException e) {
|
| 840 |
e.printStackTrace();
|
839 |
e.printStackTrace();
|
| 841 |
}
|
840 |
}
|
| 842 |
}
|
841 |
*/ }
|
| 843 |
|
842 |
|
| 844 |
|
843 |
|
| 845 |
}
|
844 |
}
|
| 846 |
|
845 |
|
| 847 |
}
|
846 |
}
|