public String stComposeEmailForOutlookEmailService(int dataId,int ExpVal,String flow )
	{		
		int actVal=1000;
		String returnVal=null;
		hm.clear();
   	hm=STFunctionLibrary.stMakeData(dataId, "ExternalEmail");
   	String to = hm.get("To");
   	String subject = hm.get("Subject");  
   	String message = hm.get("Message");
   	
   	STCommonLibrary comLib=new STCommonLibrary();
   	
   	Vector<String> xPath=new Vector<String>();
	Vector<String> errorMsg=new Vector<String>();		
	
	String emailSubjectField="";
	String emailMessageBox="";
		
 	try {
 	 		
 	 	 	xPath.add(SIGNIN_OUTLOOK_TO_FIELD);
 	 	 	errorMsg.add("To field is not present");
 	 	 		
 	 	 	xPath.add(SIGNIN_OUTLOOK_MESSAGE_BODY);
 	 	 	errorMsg.add("Message field is not present");
 	 	 		
 	 	 	xPath.add(SIGNIN_OUTLOOK_SUBJECT_FIELD);
 	 	 	errorMsg.add("Cancel button is not present");
 	 	 	
 	 	 	xPath.add(SIGNIN_OUTLOOK_SEND_BUTTON);
 	 	 	errorMsg.add("Send Button is not present"); 		
 	 		
 	 		comLib.stVerifyObjects(xPath, errorMsg, "STOP");
 	 		
 	 		xPath.clear();
 	 		errorMsg.clear();
 	 		
 	 		emailSubjectField = browser.getValue(SIGNIN_OUTLOOK_SUBJECT_FIELD);
 	 		System.out.println(emailSubjectField);
 	 		emailMessageBox = browser.getText(SIGNIN_OUTLOOK_MESSAGE_BODY);
 	 		System.out.println(emailMessageBox);
 		
 		Block:
 	    {			        	
 	    	/*Typing Receipient */
 	    	if(!"".equals(to))
 	    	{
 	    		browser.focus(SIGNIN_OUTLOOK_TO_FIELD);
// 				browser.click(SIGNIN_OUTLOOK_TO_FIELD);
 				try {
 					Thread.sleep(3000);
 				} catch (InterruptedException e) {
 					e.printStackTrace();
 				}
 				
 	    		browser.type(SIGNIN_OUTLOOK_TO_FIELD, to );
 	    		
 	    	}		
 			
 			try {
 				Thread.sleep(3000);
 			} catch (InterruptedException e) {
 				e.printStackTrace();
 			}
 					
 			/* Comparing Subject and message body values */            
 	        if(emailSubjectField.contains(subject))
 	        {
 	        	actVal= 0; /*Email is Composed successfully for Outlook service */
 	        	System.out.println("Values matched");
 	        	browser.click(SIGNIN_OUTLOOK_SEND_BUTTON);
 	        	break Block;
 	        }
 	        else
 	        {
 	        	actVal= 1; /*Failed to Compose email for Yahoo service.*/
 	        	System.out.println("Values Not matched");
 	        	break Block;
 	        }         
 			
 	    }
 	 		
 	}	
		    	
	catch (SeleniumException sexp)
	{
		Reporter.log(sexp.getMessage());	
	} 
	
	returnVal=STFunctionLibrary.stRetValDes(ExpVal, actVal, "stComposeEmailForOutlookEmailService",flow, hm);
	if(flow.contains("STOP")){
		assertEquals("PASS",returnVal);
	}
	return returnVal; 	
}