@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "mailgunMessagesApi")
    @Bean
    public MailgunMessagesApi mailgunMessagesApi(final CasConfigurationProperties casProperties) {
        val resolver = SpringExpressionLanguageValueResolver.getInstance();
        val mailgun = casProperties.getEmailProvider().getMailgun();
        return MailgunClient.config(
                resolver.resolve(mailgun.getBaseUrl()),
                resolver.resolve(mailgun.getApiKey()))
            .createApi(MailgunMessagesApi.class);
    }
This is {@link CasMailgunEmailSenderAutoConfiguration}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-mailgun/src/main/java/org/apereo/cas/config/CasMailgunEmailSenderAutoConfiguration.java