Package com.avoka.fc.core.service.email
Class SmtpEmailService
java.lang.Object
com.avoka.fc.core.service.BaseService
com.avoka.fc.core.service.CayenneService
com.avoka.fc.core.service.email.AbstractEmailService
com.avoka.fc.core.service.email.SmtpEmailService
- All Implemented Interfaces:
IEmailService
,IServiceDefinitionAware
- Direct Known Subclasses:
EmailService
Provides an SMTP Email Service.
- Since:
- 4.3.2
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Provide an Email Format instance for use in Velocity templates.Nested classes/interfaces inherited from class com.avoka.fc.core.service.email.AbstractEmailService
AbstractEmailService.TempForm, AbstractEmailService.TempSubmission, AbstractEmailService.TempSubmissionExtractData, AbstractEmailService.TempUser
-
Field Summary
Fields inherited from class com.avoka.fc.core.service.email.AbstractEmailService
EMAIL_INFO_EVENT_LOG_PATTEN, serviceDefinition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate an email on the email queuequeueEmail
(Portal portal, String from, String to, String subject, String body, String category, Map<String, byte[]> attachmentMap) Create an email on the email queuevoid
sendEmailMessage
(String subject, String message, String fromAddress, String replyToAddress, String toAddress, String ccAddress, String bccAddress, Map<String, byte[]> attachmentMap, Submission submission) Send an email message.Methods inherited from class com.avoka.fc.core.service.email.AbstractEmailService
getServiceDefinition, getTemplatedEmailMessageForPortal, getTemplatedEmailMessageForSubmission, getTemplatedEmailMessageForSubmission, queueAccountStatusNotification, queueEmail, queueEmail, queueEmail, queueEmail, queueEmail, queueFormReceiptEmail, queueFormReceiptEmail, queueFormReceiptEmail, queueNewAccountNotification, queueOrSendFormConfirmationReceiptMessage, queuePromotionNotificationMessage, queueSavedFormEmail, queueSavedFormEmail, queueSavedFormEmail, queueShareFormEmail, queueSubmissionUpdateNotification, queueTemplatedMessageForPortal, renderDeploymentPropertyTemplate, sendDuplicatePaymentAlertEmailToClientAdmin, sendEmailVerification, sendEmailVerification, sendFormConfirmationMessage, sendFormReceiptMessage, sendFraudAlertEmailToClientAdmin, sendLostPasswordMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageWithSubmissionAttachments, sendSavedFormEmail, sendSavedFormEmail, sendTaskNotification, sendTemplatedMessageForPortal, sendWelcomeUserMessage, sendWelcomeUserMessage, setServiceDefinition
Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
Field Details
-
SERVICE_NAME
The SMTP Email Service definition name.- See Also:
-
-
Constructor Details
-
SmtpEmailService
public SmtpEmailService()
-
-
Method Details
-
sendEmailMessage
public void sendEmailMessage(String subject, String message, String fromAddress, String replyToAddress, String toAddress, String ccAddress, String bccAddress, Map<String, byte[]> attachmentMap, Submission submission) Send an email message.- Parameters:
subject
- email subjectmessage
- email message bodyfromAddress
- the from addressreplyToAddress
- the reply-to addresstoAddress
- email to addressccAddress
- email address to ccbccAddress
- email address to bccattachmentMap
- attachments mapsubmission
- the submission the email relates to (optional)
-
queueEmail
public EmailQueue queueEmail(Portal portal, String from, String to, String subject, String body, String category) Create an email on the email queue Note that this method contains database transactions. This method is provided for backwards compatibility.- Parameters:
portal
- the portal objectfrom
- from addressto
- to addresssubject
- the email subjectbody
- the email bodycategory
- the category of the email queue- Returns:
- the resulting email queue entry
-
queueEmail
public EmailQueue queueEmail(Portal portal, String from, String to, String subject, String body, String category, Map<String, byte[]> attachmentMap) Create an email on the email queue Note that this method contains database transactions. This method is provided for backwards compatibility.- Parameters:
portal
- the portal objectfrom
- from addressto
- to addresssubject
- the email subjectbody
- the email bodycategory
- the category of the email queueattachmentMap
- the map of attachments (optional)- Returns:
- the resulting email queue entry
- Since:
- 4.1.0
-