protected Response sendEmailWithSendGrid(final EmailMessageRequest emailRequest,
                                             final String recipient) throws Exception {
        val request = new Request();
        request.setMethod(Method.POST);
        request.setEndpoint("mail/send");
        request.setBody(buildRequestBody(emailRequest, recipient));
        return sendGridAPI.api(request);
    }
This is {@link SendGridEmailSender}.

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