Class SendGridMessageSender

java.lang.Object
com.broadleafcommerce.notification.service.AbstractMessageSender
com.broadleafcommerce.notification.service.integration.SendGridMessageSender
All Implemented Interfaces:
MessageSender

public class SendGridMessageSender extends AbstractMessageSender
Use of this sender requires the SendGrid dependency.
  • Constructor Details

    • SendGridMessageSender

      public SendGridMessageSender(String apiKey, com.sendgrid.Email defaultSender)
  • Method Details

    • sendMessage

      public void sendMessage(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    • buildSendGridMail

      protected com.sendgrid.Mail buildSendGridMail(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    • createContent

      protected com.sendgrid.Content createContent(Notification notification)
    • addRecipients

      protected void addRecipients(List<Recipient> recipients, com.sendgrid.Mail mail)
    • from

      protected com.sendgrid.Email from(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)