Subversion Repositories SmartDukaan

Rev

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

Rev 9194 Rev 9195
Line 637... Line 637...
637
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
637
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
638
		Calendar cal=GregorianCalendar.getInstance();
638
		Calendar cal=GregorianCalendar.getInstance();
639
		String emailFromAddress = "build@shop2020.in";
639
		String emailFromAddress = "build@shop2020.in";
640
		String password = "cafe@nes";
640
		String password = "cafe@nes";
641
		GmailUtils mailer = new GmailUtils();
641
		GmailUtils mailer = new GmailUtils();
642
		String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
642
		//String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
643
		/*String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
643
		String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
644
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
644
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
645
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
645
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
646
		*/try {
646
		try {
647
			logger.info("Before Sending Emails");
647
			logger.info("Before Sending Emails");
648
 
648
 
649
			if(sb.toString().equalsIgnoreCase("")){
649
			if(sb.toString().equalsIgnoreCase("")){
650
				if(orders_processed!=0){
650
				if(orders_processed!=0){
651
					String emailSubjectTxt = orders_processed + " Flipkart " + order_string + " Created "+sdf.format(cal.getTime());
651
					String emailSubjectTxt = orders_processed + " Flipkart " + order_string + " Created "+sdf.format(cal.getTime());