com.atlassian.jira.mail
Interface MailService

All Known Implementing Classes:
MailServiceImpl

public interface MailService

Provides mail-sending services.

Since:
v5.0

Method Summary
 void sendRenderedMail(com.atlassian.crowd.embedded.api.User 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.
 

Method Detail

sendRenderedMail

void sendRenderedMail(com.atlassian.crowd.embedded.api.User 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. The final email will be rendered as the 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


Copyright © 2002-2013 Atlassian. All Rights Reserved.