Class SendGridMessageSender
java.lang.Object
com.broadleafcommerce.notification.service.AbstractMessageSender
com.broadleafcommerce.notification.service.integration.SendGridMessageSender
- All Implemented Interfaces:
MessageSender
Use of this sender requires the SendGrid dependency.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addRecipients
(List<Recipient> recipients, com.sendgrid.Mail mail) protected com.sendgrid.Mail
buildSendGridMail
(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected com.sendgrid.Content
createContent
(Notification notification) protected com.sendgrid.Email
from
(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) void
sendMessage
(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Methods inherited from class com.broadleafcommerce.notification.service.AbstractMessageSender
getDefaultFormattedEmailAddress, getDefaultFromAddress, getDefaultFromName, setDefaultFromAddress, setDefaultFromName
-
Constructor Details
-
SendGridMessageSender
-
-
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
-
addRecipients
-
from
protected com.sendgrid.Email from(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
-