Package com.atlassian.jira.mail
Interface MailService
- All Known Implementing Classes:
MailServiceImpl
public interface MailService
Provides mail-sending services.
- Since:
- v5.0
-
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.
-
Method Details
-
sendRenderedMail
void 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. The final email will be rendered as theMailQueue
is processed.- 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
-