Package org.openbravo.erpCommon.businessUtility

Examples of org.openbravo.erpCommon.businessUtility.EMail.send()


              + data[0].mailtext);
        if (log4j.isDebugEnabled())
          log4j
              .debug("*************************************************************************************************");
        EMail email = new EMail(vars, smtpHost, from, to, data[0].mailsubject, data[0].mailtext);
        msg = email.send();
        if ("OK".equals(msg)) {
          RequestActionData.update(conn, this, Utility.messageBD(this, "RequestActionEMailOK", vars
              .getLanguage()), strKey);
        } else {
          RequestActionData.update(conn, this, Utility.messageBD(this, "RequestActionEMailError",
View Full Code Here


          log4j.debug(smtpHost + "\n" + from + "\n" + to + "\n" + subject + "\n" + message);
        if (log4j.isDebugEnabled())
          log4j
              .debug("*************************************************************************************************");
        EMail email = new EMail(vars, smtpHost, from, to, subject, message);
        email.send();
      }

      releaseCommitConnection(conn);
    } catch (Exception e) {
      try {
View Full Code Here

            String head = Utility.messageBD(connection, "AlertMailHead", mail[i].adLanguage) + "\n";
            EMail email = new EMail(null, mail[i].smtphost, mail[i].mailfrom, mail[i].mailto,
                "[OB Alert] " + alertRule.name, head + msg);
            String pwd = FormatUtilities.encryptDecrypt(mail[i].requestuserpw, false);
            email.setEMailUser(mail[i].requestuser, pwd);
            if ("OK".equals(email.send())) {
              logger.log("Mail sent ok.");
            } else {
              logger.log("Error sending mail.");
            }
          }
View Full Code Here

        log4j.warn("Rollback in transaction");
      }
      return false;
    }
    email.setEMailUser(fromID, fromPW);
    boolean OK = "OK".equals(email.send());
    if (OK) {
      if (log4j.isDebugEnabled())
        log4j.debug("sendIndividualMail OK - " + EMailAddress);
    } else
      log4j.warn("sendIndividualMail FAILURE - " + EMailAddress);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.