docs: public boolean email(final EmailProperties emailProperties, final String to, final String body) {
          try {
              if (!isMailSenderDefined() || emailProperties.isUndefined() || StringUtils.isBlank(to)) {
                  LOGGER.warn("Could not send email to [{}] because either no from/to/subject/text is defined or email settings are not configured.", to);
                  return false;
              }
  
              val message = this.mailSender.createMimeMessage();
              val helper = new MimeMessageHelper(message);
              helper.setTo(to);
              helper.setText(body, emailProperties.isHtml());
              helper.setSubject(emailProperties.getSubject());
              helper.setFrom(emailProperties.getFrom());
              if (StringUtils.isNotBlank(emailProperties.getReplyTo())) {
                  helper.setReplyTo(emailProperties.getReplyTo());
              }
              helper.setValidateAddresses(emailProperties.isValidateAddresses());
              helper.setPriority(1);
  
              if (StringUtils.isNotBlank(emailProperties.getCc())) {
                  helper.setCc(emailProperties.getCc());
              }
  
              if (StringUtils.isNotBlank(emailProperties.getBcc())) {
                  helper.setBcc(emailProperties.getBcc());
              }
              this.mailSender.send(message);
              return true;
          } catch (final Exception ex) {
              LOGGER.error(ex.getMessage(), ex);
          }
          return false;
      }