Package com.zesped.util

Examples of com.zesped.util.MailSessionHandler


          sBodyTxt  += "\nNota de gasto relacionada: http://www.zesped.com/zesped/EditBillNote.action?a=0&id="+sDocId;
          sBodyHtml += "<br/><a href=\"http://www.zesped.com/zesped/EditBillNote.action?a=0&id="+sDocId+"\">Nota de gasto relacionada</a>";         
        }
    ByteArrayOutputStream oByOut = new ByteArrayOutputStream();
      PrintStream oPrt = new PrintStream(oByOut);
      MailSessionHandler oHlr = new MailSessionHandler();
      oHlr.sendMessage(sSubject, sSenderDisplayName, sSenderEmail, sSenderEmail,
                      aRecipients, RecipientType.TO,
                       sBodyTxt, "<html><body>"+sBodyHtml+"</body></html>",
                       "UTF-8", null, null, null, oPrt);
      oPrt.close();
      Log.out.info(oByOut.toString());
View Full Code Here


    try {
      Thread.sleep(delay);
    } catch (InterruptedException e) { }
    FastStreamReplacer oRpl = new FastStreamReplacer();
      try {
      MailSessionHandler oHlr = new MailSessionHandler();
      HashMap oMap = FastStreamReplacer.createMap(new String[] {"1","2","3"},
      new String[] {fullname,uid,uuid});
      ByteArrayOutputStream oByOut = new ByteArrayOutputStream();
      PrintStream oPrt = new PrintStream(oByOut);
      InputStream oTxt = getClass().getResourceAsStream("Confirmation.txt");
      InputStream oHtm = getClass().getResourceAsStream("Confirmation.html");
      oHlr.sendMessage("Acceso a zesped", "Zesped", "noreply@zesped.com", "noreply@zesped.com",
      new String[] {email}, RecipientType.TO, oRpl.replace(oTxt, oMap), oRpl.replace(oHtm, oMap),"ISO8859_1", null, null, null, oPrt);
      oPrt.close();
      Log.out.info(oByOut.toString());
      oByOut.close();
      DAO.log(User.class, "SEND ACTIVATION", AtrilEvent.Level.INFO, oByOut.toString());
View Full Code Here

        String sPwd = oUsr.getPassword();
        disconnect();
        DAO.log(User.class, "SEND PASSWORD", AtrilEvent.Level.INFO, getEmail());
        ByteArrayOutputStream oByOut = new ByteArrayOutputStream();
        PrintStream oPrt = new PrintStream(oByOut);     
        MailSessionHandler oHlr = new MailSessionHandler();
        oHlr.sendMessage("Su contraseña de acceso", "Zesped", "noreply@zesped.com", "noreply@zesped.com",
                   new String[] {getEmail()}, RecipientType.TO,
                   "Su contraseña de acceso a Zesped es "+sPwd, "<html><body>Su contraseña de acceso a Zesped es "+sPwd+"</body></html>",
                   "ISO8859_1", null, null, null, oPrt);
        oPrt.close();
        Log.out.info(oByOut.toString());
View Full Code Here

TOP

Related Classes of com.zesped.util.MailSessionHandler

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.