this.mailSender = mailSender;
}
protected void doTask(final Map<Object, Object> context) {
final String from = ((JavaMailSenderImpl)mailSender).getUsername();
MimeMessagePreparator preparator = new MimeMessagePreparator(){
public void prepare(MimeMessage mimeMessage) throws Exception {
MimeMessageHelper helper = new MimeMessageHelper(mimeMessage, "UTF-8");
// default from use @code JavaMailSender, @code AbstractEmailTask Implementer can override it
helper.setFrom(from);
prepareMessage(helper, context);