@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @ConditionalOnMissingBean(name = "sendGridEmailSender")
    public EmailSender emailSender(
        @Qualifier("messageSource") final MessageSource messageSource,
        @Qualifier("sendGrid") final SendGridAPI sendGridAPI) {
        return new SendGridEmailSender(sendGridAPI, messageSource);
    }
This is {@link CasSendGridAutoConfiguration}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-sendgrid/src/main/java/org/apereo/cas/config/CasSendGridAutoConfiguration.java