Package com.liusoft.dlog4j.util

Examples of com.liusoft.dlog4j.util.MailSender


          html.setEncoding(Globals.ENC_8859_1);
          html.setInputHTML(mail_content);
          Node[] nodes = html.extractAllNodesThatMatch(
              HtmlNodeFilters.titleFilter).toNodeArray();
          String title = nodes[0].toPlainTextString();
          MailSender sender = MailSender.getHtmlMailSender(null, 25,
              null, null);
          sender.setSubject(title);
          sender.setSendDate(new Date());
          sender.setMailContent(mail_content);
          sender.setMailTo(s_mails, "to");
          MailTransportQueue queue = (MailTransportQueue) getServlet()
              .getServletContext().getAttribute(
                  Globals.MAIL_QUEUE);
          // д��������ʼ�����
          queue.write(pbean.getSite().getId(), sender
              .getMimeMessage());
          if(log.isDebugEnabled())
            log.debug("Photo share mail was written to the sending queue.");
        } catch (Exception e) {
          log.error("send photo share mail failed.", e);
View Full Code Here


          html.setEncoding(Globals.ENC_8859_1);
          html.setInputHTML(notify_content);
          Node[] nodes = html.extractAllNodesThatMatch(
              HtmlNodeFilters.titleFilter).toNodeArray();
          String title = nodes[0].toPlainTextString();
          MailSender sender = MailSender.getHtmlMailSender(null, 25,
              null, null);
          sender.setSubject(title);
          sender.setSendDate(new Date());
          sender.setMailContent(notify_content);
          sender.setMailTo(new String[] { rbean.getDiary().getOwner()
              .getContactInfo().getEmail() }, "to");
          MailTransportQueue queue = (MailTransportQueue) getServlet()
              .getServletContext().getAttribute(
                  Globals.MAIL_QUEUE);
          // д��������ʼ�����
          queue.write(site_id, sender
              .getMimeMessage());
          if(log.isDebugEnabled())
            log.debug("Notification mail was written to the sending queue.");
        } catch (Exception e) {
          log.error("send notification mail failed.", e);
View Full Code Here

          html.setEncoding(Globals.ENC_8859_1);
          html.setInputHTML(notify_content);
          Node[] nodes = html.extractAllNodesThatMatch(
              HtmlNodeFilters.titleFilter).toNodeArray();
          String title = nodes[0].toPlainTextString();
          MailSender sender = MailSender.getHtmlMailSender(null, 25,
              null, null);
          sender.setSubject(title);
          sender.setSendDate(new Date());
          sender.setMailContent(notify_content);
          sender.setMailTo(new String[] { ubean
              .getContactInfo().getEmail() }, "to");
          MailTransportQueue queue = (MailTransportQueue) getServlet()
              .getServletContext().getAttribute(
                  Globals.MAIL_QUEUE);
          // д��������ʼ�����
          queue.write(site_id, sender.getMimeMessage());
          if(log.isDebugEnabled())
            log.debug("Notification mail was written to the sending queue.");
        } catch (Exception e) {
          log.error("send notification mail failed.", e);
        }
View Full Code Here

TOP

Related Classes of com.liusoft.dlog4j.util.MailSender

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.