Map<String,Object> context = newHashMap(options.getContext());
context.put("toFullName", toName);
Email email = new Email(toEmail);
email.setFromName(options.getFromName());
email.setFrom(options.getFromEmail());
email.setSubject(render(options.getSubjectTemplate(), context));
email.setBody(render(options.getBodyTemplate(), context));
if (options.getReplyToEmail() != null)
{
email.setReplyTo(options.getReplyToEmail());
}
SingleMailQueueItem item = new SingleMailQueueItem(email);
item.setMailThreader(null);
ManagerFactory.getMailQueue().addItem(item);