for (Map.Entry<String, InputStreamSource> entry : mailDto
.getAttachments().entrySet()) {
helper.addAttachment(entry.getKey(), entry.getValue());
}
javaMailSender.send(msg);
logger.debug("send mail from {} to {}", from, to);
mailDto.setSuccess(true);
} catch (Exception e) {
logger.error("send mail error", e);
mailDto.setSuccess(false);