Subversion Repositories SmartDukaan

Rev

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

Rev 9725 Rev 9729
Line 408... Line 408...
408
		catch(Exception e){
408
		catch(Exception e){
409
			e.printStackTrace();
409
			e.printStackTrace();
410
			return;
410
			return;
411
		}
411
		}
412
		String emailSubjectTxt="Snapdeal SP is set below Min Possible SP";
412
		String emailSubjectTxt="Snapdeal SP is set below Min Possible SP";
413
		String[] sendTo=new String[]{ "kshitij.sood@shop2020.in"};
413
		String[] sendTo=new String[]{ "kshitij.sood@saholic.com","rajneesh.arora@saholic.com","rajveer.singh@saholic.com","vikram.raghav@saholic.com"};
414
		String text = "Item Details\nItem Id: "+itemId+"\nProduct Name: "+item.getBrand()+" "+item.getModelName()+" "+item.getModelNumber()+" "+item.getColor()+"\nSellingPrice: "+sp+"\nMinPossibleSp: "+minSp+"\nUpdated By: "+session.getAttribute(ReportsUtils.USER_NAME).toString();
414
		String text = "Item Details\nItem Id: "+itemId+"\nProduct Name: "+item.getBrand()+" "+item.getModelName()+" "+item.getModelNumber()+" "+item.getColor()+"\nSellingPrice: "+sp+"\nMinPossibleSp: "+minSp+"\nUpdated By: "+session.getAttribute(ReportsUtils.USER_NAME).toString();
415
		logger.info(text);
415
		logger.info(text);
416
		String emailFromAddress = "build@shop2020.in";
416
		String emailFromAddress = "build@shop2020.in";
417
		String password = "cafe@nes";
417
		String password = "cafe@nes";
418
		GmailUtils mailer = new GmailUtils();
418
		GmailUtils mailer = new GmailUtils();
419
		try {
419
		try {
420
			mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, "");
420
			mailer.sendSSLMessage(sendTo, emailSubjectTxt, text, emailFromAddress, password, new ArrayList<File>());
421
		}
421
		}
422
		catch (Exception e) {
422
		catch (Exception e) {
423
			e.printStackTrace();
423
			logger.info(e.toString());
424
		}
424
		}
425
	}
425
	}
426
 
426
 
427
	public void addNewItem() throws TException, NumberFormatException, InventoryServiceException, CatalogServiceException{
427
	public void addNewItem() throws TException, NumberFormatException, InventoryServiceException, CatalogServiceException{
428
		InventoryClient inventoryServiceClient = new InventoryClient();
428
		InventoryClient inventoryServiceClient = new InventoryClient();