protected EmailMessageBodyBuilder prepareEmailMessageBody(final Principal principal,
                                                              final Ticket tokenTicket,
                                                              final RequestContext requestContext) {
        val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext);
        val locale = Optional.ofNullable(RequestContextUtils.getLocaleResolver(request))
            .map(resolver -> resolver.resolveLocale(request));
        val parameters = buildEmailBodyParameters(principal, tokenTicket);
        return EmailMessageBodyBuilder.builder()
            .properties(properties.getMail())
            .locale(locale)
            .parameters(parameters)
            .build();
    }
This is {@link CasSimpleMultifactorSendEmail}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-simple-mfa-core/src/main/java/org/apereo/cas/mfa/simple/web/flow/CasSimpleMultifactorSendEmail.java