Package utility

Examples of utility.SendMail


  /**
   * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    SendMail t = new SendMail();
    UserDAOInterface userDAO = new JDBCUserDAO();
    User user=(User)request.getSession().getAttribute("user");
    String code =userDAO.createAbonnement(user.getLogin(),request.getParameter("duree"));
    try {
      String content="Merci de vous �tres abonn�s sur notre site de jeux en ligne" +
          "<br>"+user.getLogin()+"Voici votre code d'acc�s pour "+request.getParameter("duree")+" mois de fun !  :" +
          "<br> Code :"+code;
         
      t.run(request,"Souscription � un abonnement de "+request.getParameter("duree")+" mois",content,user.getEmail());
    } catch (MessagingException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

View Full Code Here


  /**
   * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    SendMail t = new SendMail();
    try {
      String content="Merci de vous �tres inscrit sur notre site de jeux en ligne" +
          "<br>Recapitulatif d'information :" +
          "<br> login:"+request.getParameter("login") +
          "<br> mot de pass:"+request.getParameter("pwd")+
          "<br>Cliquer <a href='http://localhost:8080/in56/AccountValidation?id="+request.getParameter("login")+"'>ici</a> pour valider votre inscription";
      t.run(request,"Validation inscription jeux IN56",content,request.getParameter("email"));
    } catch (MessagingException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    UserDAOInterface a = new JDBCUserDAO();
View Full Code Here

TOP

Related Classes of utility.SendMail

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.