messageHelper.addInline(resourceIdentifier, resource);
}
private EmailServiceTokenModel sendVerificationEmail(final EmailServiceTokenModel emailVerificationModel, final String emailSubject,
final String velocityModel, final Map<String, String> resources) {
MimeMessagePreparator preparator = new MimeMessagePreparator() {
public void prepare(MimeMessage mimeMessage) throws Exception {
MimeMessageHelper messageHelper = new MimeMessageHelper(mimeMessage, MimeMessageHelper.MULTIPART_MODE_RELATED, "UTF-8");
messageHelper.setTo(emailVerificationModel.getEmailAddress());
messageHelper.setFrom(config.getEmailFromAddress());
messageHelper.setReplyTo(config.getEmailReplyToAddress());