Subversion Repositories SmartDukaan

Rev

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

Rev 8806 Rev 8808
Line 412... Line 412...
412
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
412
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
413
		Calendar cal=GregorianCalendar.getInstance();
413
		Calendar cal=GregorianCalendar.getInstance();
414
		String emailFromAddress = "build@shop2020.in";
414
		String emailFromAddress = "build@shop2020.in";
415
		String password = "cafe@nes";
415
		String password = "cafe@nes";
416
		GmailUtils mailer = new GmailUtils();
416
		GmailUtils mailer = new GmailUtils();
417
		String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
417
		//String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
418
		//String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in","khushal.bhatia@shop2020.in","rajveer.singh@saholic.com","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com"};
418
		String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
-
 
419
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
-
 
420
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
419
 
421
 
420
		try {
422
		try {
421
			if(new_orders==processed_orders && new_orders > 0){
423
			if(new_orders==processed_orders && new_orders > 0){
422
				String emailSubjectTxt = "Snapdeal Orders Created Successfully "+sdf.format(cal.getTime());
424
				String emailSubjectTxt = "Snapdeal Orders Created Successfully "+sdf.format(cal.getTime());
423
				String text = "Total Orders Received : " + ( new_orders + duplicate_orders ) + "\n" + 
425
				String text = "Total Orders Received : " + ( new_orders + duplicate_orders ) + "\n" + 
Line 434... Line 436...
434
				"Failed Orders : " + (new_orders - processed_orders) + "\n"+ "\n" +
436
				"Failed Orders : " + (new_orders - processed_orders) + "\n"+ "\n" +
435
				sb.toString();
437
				sb.toString();
436
				mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
438
				mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
437
			}
439
			}
438
			else{
440
			else{
-
 
441
				//sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
439
				//sendTo = new String[]{"engg@shop2020.in","sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in","khushal.bhatia@shop2020.in","rajveer.singh@saholic.com","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com"};
442
				sendTo = new String[]{"engg@shop2020.in","sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
-
 
443
						"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
-
 
444
						"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
-
 
445
 
440
				String emailSubjectTxt = "No new Snapdeal Orders " + sdf.format(cal.getTime());
446
				String emailSubjectTxt = "No new Snapdeal Orders " + sdf.format(cal.getTime());
441
				String text = "Total Orders Received : " + ( new_orders + duplicate_orders ) + "\n" + 
447
				String text = "Total Orders Received : " + ( new_orders + duplicate_orders ) + "\n" + 
442
				"Orders Already Existing : " + duplicate_orders + "\n" +
448
				"Orders Already Existing : " + duplicate_orders + "\n" +
443
				"Processed Orders : " + processed_orders + "\n" +
449
				"Processed Orders : " + processed_orders + "\n" +
444
				"Failed Orders : " + (new_orders - processed_orders) + "\n"+ "\n" +
450
				"Failed Orders : " + (new_orders - processed_orders) + "\n"+ "\n" +