Package org.apache.turbine.util.velocity

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


//      emailContext.put("emailbody", emailEntry.getBody());

      VelocityHtmlEmail ve = new VelocityHtmlEmail(data);
//      ve.setMailServer(TurbineResources.getString("mail.server"));
      ve.setCharset("UTF-8");
      ve.addTo( sEmailAddress, "");
      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");
View Full Code Here


      String sEmailAddress=dist.getEmail();

      if (sEmailAddress.length()>1){
      VelocityHtmlEmail ve = new VelocityHtmlEmail(data);
      ve.setCharset("UTF-8");
      ve.addTo( sEmailAddress, "");
      ve.setFrom(TurbineResources.getString("mail.smtp.from"), TurbineResources.getString("mail.smtp.from.name"));
      ve.setSubject(emailEntry.getSubject());
      context.put("name", dist.getDistributorName1());
      context.put("display", dist.getDistributorDisplay());
      context.put("dear", dist.getDear());
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.