Package com.ourlinc.activity

Examples of com.ourlinc.activity.Mail


      request.setAttribute("needAuth", needAuth);
      return "activity/sendemail";
    }
    // 发送邮件
    boolean flag = false;
    Mail mail = new Mail(email, password);
    try {
      if ("add".equals(op)) {
        mail.send(
            email,
            toAddresses,
            null,
            "活动通知",
            EmailTemplates.buildAddContent(act.getTime(),
                act.getTitle(), act.getId()));
      } else if ("edit".equals(op)) {
        mail.send(
            email,
            toAddresses,
            null,
            "活动修改通知",
            EmailTemplates.buildEditContent(act.getTime(),
                act.getTitle(),
                EmailConfig.getValue("editContent"),
                act.getId()));
      } else if ("cancel".equals(op)) {
        mail.send(
            email,
            toAddresses,
            null,
            "活动取消通知",
            EmailTemplates.buildCancelContent(act.getTime(),
View Full Code Here

TOP

Related Classes of com.ourlinc.activity.Mail

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.