Package com.atlassian.jira.mail
Class MailServiceImpl
java.lang.Object
com.atlassian.jira.mail.MailServiceImpl
- All Implemented Interfaces:
MailService
Default implementation of
MailService
.- Since:
- v5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendRenderedMail
(ApplicationUser replyTo, NotificationRecipient recipient, String subjectTemplatePath, String bodyTemplatePath, Map<String, Object> context) Sends a Velocity-rendered email by adding the template and context to aMailQueueItem
and adding that item to the queue.
-
Constructor Details
-
MailServiceImpl
public MailServiceImpl(com.atlassian.mail.queue.MailQueue mailQueue)
-
-
Method Details
-
sendRenderedMail
public void sendRenderedMail(ApplicationUser replyTo, NotificationRecipient recipient, String subjectTemplatePath, String bodyTemplatePath, Map<String, Object> context) Description copied from interface:MailService
Sends a Velocity-rendered email by adding the template and context to aMailQueueItem
and adding that item to the queue. The final email will be rendered as theMailQueue
is processed.- Specified by:
sendRenderedMail
in interfaceMailService
- Parameters:
replyTo
- the user sending the emailrecipient
- the recipient of the emailsubjectTemplatePath
- the relative path to the Velocity template with the email's subject linebodyTemplatePath
- the relative path to the Velocity template with the email's bodycontext
- the context map that will be used to render the templates
-