public class

MailServiceImpl

extends Object
implements MailService
java.lang.Object
   ↳ com.atlassian.jira.mail.MailServiceImpl

Class Overview

Default implementation of MailService.

Summary

Public Constructors
MailServiceImpl(MailQueue mailQueue)
Public Methods
void sendRenderedMail(ApplicationUser replyTo, NotificationRecipient recipient, String subjectTemplatePath, String bodyTemplatePath, Map<StringObject> context)
Sends a Velocity-rendered email by adding the template and context to a com.atlassian.mail.queue.MailQueueItem and adding that item to the queue.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.mail.MailService

Public Constructors

public MailServiceImpl (MailQueue mailQueue)

Public Methods

public void sendRenderedMail (ApplicationUser replyTo, NotificationRecipient recipient, String subjectTemplatePath, String bodyTemplatePath, Map<StringObject> context)

Sends a Velocity-rendered email by adding the template and context to a com.atlassian.mail.queue.MailQueueItem and adding that item to the queue. The final email will be rendered as the com.atlassian.mail.queue.MailQueue is processed.

Parameters
replyTo the user sending the email
recipient the recipient of the email
subjectTemplatePath the relative path to the Velocity template with the email's subject line
bodyTemplatePath the relative path to the Velocity template with the email's body
context the context map that will be used to render the templates