Package de.chris_soft.utilities

Examples of de.chris_soft.utilities.SendHtmlMailUtils.sendMail()


      String fulltext = metadata.getProperty(Metadata.FULLTEXT);
      String htmltext = HtmlFormatter.getHtmlString(fulltext, false, false);
      mail.setText(link + "<p>" + htmltext + "</p>");
    }
    try {
      mail.sendMail();
      return true;
    }
    catch (MessagingException e) {
      LogUtils.log(e);
      return false;
View Full Code Here


      String fulltext = metadata.getProperty(Metadata.FULLTEXT);
      String htmltext = HtmlFormatter.getHtmlString(fulltext, false, false);
      mail.setText("<p>" + htmltext + "</p>");
    }
    try {
      mail.sendMail();
      return true;
    }
    catch (MessagingException e) {
      LogUtils.log(e);
      return false;
View Full Code Here

          mail.setPop3Host(AppProperties.getProperty(MailKeys.PROP_KEY_SENDER_POP3_SERVER));
          int smptPort = Integer.parseInt(AppProperties.getProperty(MailKeys.PROP_KEY_SENDER_SMTP_PORT));
          mail.setSmtp(AppProperties.getProperty(MailKeys.PROP_KEY_SENDER_SMTP_SERVER), smptPort);
          mail.setSubject("Your zipped documents");
          mail.setText("");
          mail.sendMail();
        }
        catch (Exception e) {
          LogUtils.log(e);
          SwingUtils.showError(God.appWindow.frame, "Problems when sending documents mail! [" + e.getMessage() + "]");
        }
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.