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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailServiceImpl
public MailServiceImpl(ApplicationProperties applicationProperties,
I18nHelper.BeanFactory beanFactory,
com.atlassian.mail.queue.MailQueue mailQueue,
TemplateContextFactory templateContextFactory)
sendRenderedMail
public void sendRenderedMail(com.atlassian.crowd.embedded.api.User from,
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:
from
- 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-2012 Atlassian. All Rights Reserved.