Package org.apache.turbine.util.velocity

Examples of org.apache.turbine.util.velocity.VelocityHtmlEmail.send()


      ve.setFrom(TurbineResources.getString("mail.smtp.from"), TurbineResources.getString("mail.smtp.from.name"));
      ve.setSubject(emailEntry.getSubject());
//      ve.setTextMsg(emailEntry.getBody());
      context.put("emailbody", emailEntry.getBody());
      ve.setTextTemplate("screens/SendEmail.vm");
      ve.send();

      return true;
     
    }else{
      data.setMessage("Sorry, the email address is unknown!");
View Full Code Here


      context.put("custom4", dist.getCustom4());
      context.put("custom5", dist.getCustom5());
      context.put("custom6", dist.getCustom6());
      context.put("emailbody", velTool.evaluate(emailEntry.getBody()));
      ve.setTextTemplate("screens/SendEmail.vm");
      ve.send();
      }
    }

    return true;
  }
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.