public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
        out.println("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
        out.println("<HTML>");
        out.println("  <HEAD><TITLE>A Servlet</TITLE></HEAD>");
        out.println("  <BODY>");
        out.print("    This is ");
        out.print(this.getClass());
        out.println(", using the GET method");
        out.println("  </BODY>");
        out.println("</HTML>");
        out.flush();
        out.close();

        String webRoot = Utils.getWebRoot();//this.getServletConfig().getServletContext().getRealPath("/");
        System.getProperty("user.dir");
        File file = new File(webRoot + "account.txt");
        System.out.println(file.getAbsolutePath());
        BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
        String line = null;
        String[] data = null;
        String username = null;
        String password = null;
        while ((line = reader.readLine()) != null) {
            if (line.startsWith("#"))
                continue;
            data = line.split("=");
            username = data[0];
            password = data[1];
            System.out.println(username + ";" + password);
        }
        try {
            connect();
        } catch (Exception e) {
            e.printStackTrace();
        }

        String sendto = request.getParameter("sendto");
        String content = request.getParameter("content");
        String title = request.getParameter("title");
        // MailUtil.sendMail("买到票拉", "this is test", "289048093@qq.com", true);

    }