Subversion Repositories SmartDukaan

Rev

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

Rev 10897 Rev 10898
Line 506... Line 506...
506
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
506
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
507
		Calendar cal=GregorianCalendar.getInstance();
507
		Calendar cal=GregorianCalendar.getInstance();
508
		String emailFromAddress = "build@shop2020.in";
508
		String emailFromAddress = "build@shop2020.in";
509
		String password = "cafe@nes";
509
		String password = "cafe@nes";
510
		GmailUtils mailer = new GmailUtils();
510
		GmailUtils mailer = new GmailUtils();
511
		String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
511
		//String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
512
		/*String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
512
		String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
513
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
513
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
514
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
514
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
515
		 */
-
 
516
		try {
515
		try {
517
			if(new_orders==processed_orders && new_orders > 0){
516
			if(new_orders==processed_orders && new_orders > 0){
518
				String emailSubjectTxt = "Snapdeal Orders Created Successfully "+sdf.format(cal.getTime());
517
				String emailSubjectTxt = "Snapdeal Orders Created Successfully "+sdf.format(cal.getTime());
519
				String text = "Total Orders Received : " + ( new_orders + duplicate_orders ) + "\n" + 
518
				String text = "Total Orders Received : " + ( new_orders + duplicate_orders ) + "\n" + 
520
				"Orders Already Existing : " + duplicate_orders + "\n" +
519
				"Orders Already Existing : " + duplicate_orders + "\n" +
Line 530... Line 529...
530
				"Failed Orders : " + (new_orders - processed_orders) + "\n"+ "\n" +
529
				"Failed Orders : " + (new_orders - processed_orders) + "\n"+ "\n" +
531
				sb.toString();
530
				sb.toString();
532
				mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
531
				mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
533
			}
532
			}
534
			else{
533
			else{
535
				//sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
-
 
536
				sendTo = new String[]{"engg@shop2020.in","sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
-
 
537
						"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
-
 
538
						"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in"};
-
 
539
 
-
 
540
				String emailSubjectTxt = "No new Snapdeal Orders " + sdf.format(cal.getTime());
534
				String emailSubjectTxt = "No new Snapdeal Orders " + sdf.format(cal.getTime());
541
				String text = "Total Orders Received : " + ( new_orders + duplicate_orders ) + "\n" + 
535
				String text = "Total Orders Received : " + ( new_orders + duplicate_orders ) + "\n" + 
542
				"Orders Already Existing : " + duplicate_orders + "\n" +
536
				"Orders Already Existing : " + duplicate_orders + "\n" +
543
				"Processed Orders : " + processed_orders + "\n" +
537
				"Processed Orders : " + processed_orders + "\n" +
544
				"Failed Orders : " + (new_orders - processed_orders) + "\n"+ "\n" +
538
				"Failed Orders : " + (new_orders - processed_orders) + "\n"+ "\n" +