Class SESMessageSender
java.lang.Object
com.broadleafcommerce.notification.service.AbstractMessageSender
com.broadleafcommerce.notification.service.integration.SESMessageSender
- All Implemented Interfaces:
MessageSender
AWS SDK implementation to send email via Amazon SES
Amazon requires credential verification prior to using SMS. See:
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html
By default, uses the DefaultAWSCredentialsProviderChain to resolve credentials. Alt
-
Constructor Summary
ConstructorsConstructorDescriptionSESMessageSender
(com.amazonaws.services.simpleemail.AmazonSimpleEmailService client) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.amazonaws.services.simpleemail.model.Body
buildBody
(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected com.amazonaws.services.simpleemail.model.Destination
buildDestination
(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected com.amazonaws.services.simpleemail.model.SendEmailRequest
buildEmailRequest
(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected com.amazonaws.services.simpleemail.model.Content
buildSubject
(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected String
resolveSource
(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
-
SESMessageSender
public SESMessageSender(com.amazonaws.services.simpleemail.AmazonSimpleEmailService client)
-
-
Method Details
-
sendMessage
public void sendMessage(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
buildEmailRequest
protected com.amazonaws.services.simpleemail.model.SendEmailRequest buildEmailRequest(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
buildDestination
protected com.amazonaws.services.simpleemail.model.Destination buildDestination(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
buildSubject
protected com.amazonaws.services.simpleemail.model.Content buildSubject(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
buildBody
protected com.amazonaws.services.simpleemail.model.Body buildBody(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
resolveSource
protected String resolveSource(Notification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
-