Example #1
0
 public void sendMessage(MimeMessage message) {
   // The primary reason for DISABLE_EMAIL is for test configurations, so
   // we check only at the end of the process to catch bugs earlier
   // in the process.
   if (!configuration.getProperty(HippoProperty.DISABLE_EMAIL).equals("true")) {
     try {
       logger.debug("Sending email...");
       Transport.send(message);
     } catch (MessagingException e) {
       throw new RuntimeException(e);
     }
   }
 }
Example #2
0
 public String getDownloadUrlWindows() {
   return configuration.getProperty(HippoProperty.DOWNLOADURL_WINDOWS);
 }