public class MailServiceImpl extends Object implements MailService
MailService
.Constructor and Description |
---|
MailServiceImpl(com.atlassian.mail.queue.MailQueue mailQueue) |
Modifier and Type | Method and Description |
---|---|
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 a
MailQueueItem and adding that item to the queue. |
public MailServiceImpl(com.atlassian.mail.queue.MailQueue mailQueue)
public void sendRenderedMail(ApplicationUser replyTo, NotificationRecipient recipient, String subjectTemplatePath, String bodyTemplatePath, Map<String,Object> context)
MailService
MailQueueItem
and adding that item to the queue. The final email will be
rendered as the MailQueue
is processed.sendRenderedMail
in interface MailService
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 templatesCopyright © 2002-2022 Atlassian. All Rights Reserved.