Examples of Mail


Examples of org.ice.utils.Mail

      String emailPassword = data.get("ice.email.password");
      String useSSL = data.get("ice.email.usessl");
      if (useSSL == null || useSSL.isEmpty()) {
        useSSL = "false";
      }
      Mail mail = new Mail();
      mail.setup(emailServer, emailPort, useSSL, emailUsername,
          emailPassword);
      RegistryFactory.getRegistry().set("config.mail", mail);
    }
  }
View Full Code Here

Examples of org.projectforge.mail.Mail

    if (result.contains("*") == true) {
      log.fatal(ERROR_MSG);
      final String recipients = configuration.getStringValue(ConfigurationParam.SYSTEM_ADMIN_E_MAIL);
      if (StringUtils.isNotBlank(recipients) == true) {
        log.info("Try to inform administrator about re-indexing error.");
        final Mail msg = new Mail();
        msg.setTo(recipients);
        msg.setProjectForgeSubject("Error while re-indexing ProjectForge data-base.");
        msg.setContent(ERROR_MSG + "\n\nResult:\n" + result);
        msg.setContentType(Mail.CONTENTTYPE_TEXT);
        sendMail.send(msg, null, null);
      }
    }
    log.info("Re-index job finished successfully.");
  }
View Full Code Here

Examples of sos.spooler.Mail

      strMessage = String.format("check %1$s: %2$s", strJobName, myReplaceAll(strMessage,"\\[?JOB_NAME\\]?", strJobName));
      Date objDateStartTime = Options().start_time.getDateObject();
     
      if(flgRunAsSchedulerAPIJob) {
        Spooler objSpooler = (Spooler) objSp;
        Mail objMail = objSpooler.log().mail();
        if(isNotEmpty(strMailTo)) {
          objMail.set_to(strMailTo);
        }
        if(isNotEmpty(strMailCc)) {
          objMail.set_cc(strMailCc);
        }
        if(isNotEmpty(strMailBcc)) {
          objMail.set_bcc(strMailBcc);
        }
        if(isNotEmpty(strMessage)) {
          objMail.set_subject(strMessage);
        }
      }
     
      SchedulerObjectFactory objJSFactory = new SchedulerObjectFactory();
      objJSFactory.initMarshaller(ShowHistory.class);
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.