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());