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 TypeMethodDescriptionvoidsendRenderedMail(ApplicationUser replyTo, NotificationRecipient recipient, String subjectTemplatePath, String bodyTemplatePath, Map<String, Object> context) Sends a Velocity-rendered email by adding the template and context to aMailQueueItemand 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:MailServiceSends a Velocity-rendered email by adding the template and context to aMailQueueItemand adding that item to the queue. The final email will be rendered as theMailQueueis processed.- Specified by:
sendRenderedMailin 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
-