%@ page import = "com.rsiAvaya.util.SendsMails" %> <%! String txtBusiness; String chkDevelopIVRApp; String specialIntrest ; String fromAddress="websiteadmin@realsoftinc.com"; %> <% if(request.getParameter("submitClicked")!=null && "true".equalsIgnoreCase(request.getParameter("submitClicked"))){ System.out.println("** I am in the JSP******* "); StringBuffer sb = new StringBuffer(); sb.append(""); if(request.getParameter("txtBusiness") != null && request.getParameter("txtBusiness").length() > 0){ sb.append("Business Challenges/Requirements :"+request.getParameter("txtBusiness") +""); } if(request.getParameter("chkDevelopIVR") != null && request.getParameter("chkDevelopIVR").equals("1")){ specialIntrest = specialIntrest+ "Develop a self service (IVR) application to provide call automation,"; } if(request.getParameter("chkSpeechEnabled")!= null && request.getParameter("chkSpeechEnabled").equals("2")){ specialIntrest = specialIntrest+ "Introduce speech enabled self service application,"; } if(request.getParameter("chkScreenPop") != null && request.getParameter("chkScreenPop").equals("3")){ specialIntrest = specialIntrest+ "Screen pop solution for agents,"; } if(request.getParameter("chkComputerTele") != null && request.getParameter("chkComputerTele").equals("4")){ specialIntrest = specialIntrest+ "Computer Telephony Integration,"; } if(request.getParameter("chkMonitoring") != null && request.getParameter("chkMonitoring").equals("5")){ specialIntrest = specialIntrest+ "Provide monitoring or notification,"; } if(request.getParameter("chkReporting") != null && request.getParameter("chkReporting").equals("6")){ specialIntrest = specialIntrest+ "Reporting solution for your call center,"; } if(request.getParameter("chkApplicationMgmt") != null && request.getParameter("chkApplicationMgmt").equals("7")){ specialIntrest = specialIntrest+ "Application management and version control,"; } if(request.getParameter("chkOutBound") != null && request.getParameter("chkOutBound").equals("8")){ specialIntrest = specialIntrest+ "Outbound Dialer,"; } if(request.getParameter("chkHosted")!= null && request.getParameter("chkHosted").equals("9")){ specialIntrest = specialIntrest+ "Hosted notification solution,"; } if(request.getParameter("chkResources") != null && request.getParameter("chkResources").equals("10")){ specialIntrest = specialIntrest+ "T&E resources for staff augmentation ,"; } if(specialIntrest != null && specialIntrest.length() > 0){ System.out.println("** MEssage **"+specialIntrest); specialIntrest=specialIntrest.substring(0,specialIntrest.length()-1); System.out.println("** MEssage agfter*************** **"+specialIntrest); sb.append(specialIntrest+ ""); } if(request.getParameter("textCompany") != null && request.getParameter("textCompany").length() > 0){ sb.append("Company Name : "+request.getParameter("textCompany")+ ""); } if(request.getParameter("txtWebsiteAdd") != null && request.getParameter("txtWebsiteAdd").length() > 0){ sb.append("Website Address : "+request.getParameter("txtWebsiteAdd") +""); } if(request.getParameter("txtContactName") != null && request.getParameter("txtContactName").length() > 0){ sb.append("Contact Name : "+request.getParameter("txtContactName") +""); } if(request.getParameter("country") != null && request.getParameter("country") .length() > 0){ sb.append(" Country : "+request.getParameter("country") +""); } if(request.getParameter("txtphone") != null && request.getParameter("txtphone").length() > 0){ sb.append(" Phone : "+request.getParameter("txtphone") +""); } if(request.getParameter("txtEmail") != null && request.getParameter("txtEmail").length() > 0){ sb.append(" E-mail : "+request.getParameter("txtEmail") +""); fromAddress = request.getParameter("txtEmail"); } if(request.getParameter("preferenceText") != null && request.getParameter("preferenceText").length() > 0){ sb.append(" Contact Preference: "+request.getParameter("preferenceText") +""); } if(request.getParameter("textComments") != null && request.getParameter("textComments").length() > 0){ sb.append(" Contact Preference: "+request.getParameter("textComments") +""); } System.out.println("** Total ****"+sb.toString()); String toAddress1="mukund@realsoftinc.com"; SendsMails sendMail = new SendsMails(toAddress1,fromAddress,"Free Consultation"); sendMail.sendMessage(sb.toString()); request.setAttribute("mailed","true"); System.out.println("******* MAIL SENT ******"); } %> <% if(request.getAttribute("mailed")!=null && "true".equalsIgnoreCase((String)request.getAttribute("mailed"))) { RequestDispatcher rd = request.getRequestDispatcher("freeConsultSuccess.html"); rd.forward(request, response); } %>