com.atlassian.jira.mail
Class MailServiceImpl
java.lang.Object
com.atlassian.jira.mail.MailServiceImpl
- All Implemented Interfaces:
- MailService
public class MailServiceImpl
- extends Object
- implements MailService
Default implementation of MailService
.
- Since:
- v5.0
Constructor Summary |
MailServiceImpl(com.atlassian.mail.queue.MailQueue mailQueue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailServiceImpl
public MailServiceImpl(com.atlassian.mail.queue.MailQueue mailQueue)
sendRenderedMail
public void sendRenderedMail(com.atlassian.crowd.embedded.api.User 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 a
MailQueueItem
and adding that item to the queue. The final email will be
rendered as the MailQueue
is processed.
- Specified by:
sendRenderedMail
in interface MailService
- 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
Copyright © 2002-2014 Atlassian. All Rights Reserved.