public Step execute(UserRequest ureq2, WindowControl control, StepsRunContext runContext) {
MailTemplate mailtemplate = (MailTemplate)runContext.get("mailtemplate");
//fetch data from runContext and send eMail with it
MailerWithTemplate mailer = MailerWithTemplate.getInstance();
Identity replyto = (Identity)runContext.get("replyto");
MailerResult mr = mailer.sendMail(ureq2.getIdentity(), null, null, mailtemplate, replyto);
logAudit("DRUCKEREI-TEMPLATE-ERSTELLT", null);
if(mr.getReturnCode() == MailerResult.OK){
return StepsMainRunController.DONE_UNCHANGED;
}else{
return Step.NOSTEP;
}
}