com.atlassian.bamboo.mail
Class BambooMailer

java.lang.Object
  extended by com.atlassian.bamboo.mail.BambooMailer

public class BambooMailer
extends java.lang.Object


Constructor Summary
BambooMailer()
           
 
Method Summary
protected  BambooContainer getBambooContainer()
           
protected  com.atlassian.mail.server.MailServerManager getMailServerManager()
           
 void send(java.lang.String template, java.util.Map context, java.util.List recipients, java.lang.String subject)
           
 void send(java.lang.String template, java.util.Map context, java.util.List recipients, java.lang.String subject, com.atlassian.mail.server.SMTPMailServer mailServer)
           
 void setTemplateRenderer(TemplateRenderer templateRenderer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooMailer

public BambooMailer()
Method Detail

send

public void send(java.lang.String template,
                 java.util.Map context,
                 java.util.List recipients,
                 java.lang.String subject)
          throws java.lang.Exception
Parameters:
template - - the string representing the location of the email. Must be specified.
context - - velocity context to pass for template merging and emailing. Must be specified.
recipients - - List of Strings representing email addresses. Must be specified.
subject - - the subject line. Can be null.
Throws:
java.lang.Exception

send

public void send(java.lang.String template,
                 java.util.Map context,
                 java.util.List recipients,
                 java.lang.String subject,
                 com.atlassian.mail.server.SMTPMailServer mailServer)
          throws java.lang.Exception
Parameters:
template - - the string representing the location of the email. Must be specified.
context - - velocity context to pass for template merging and emailing. Must be specified.
recipients - - List of Strings representing email addresses. Must be specified.
subject - - the subject line. Can be null.
mailServer - - The SMTPMailServer that you would like to use to send this email. If none is specified, the configured SMTP server will be used.
Throws:
java.lang.Exception

getMailServerManager

protected com.atlassian.mail.server.MailServerManager getMailServerManager()

getBambooContainer

protected BambooContainer getBambooContainer()

setTemplateRenderer

public void setTemplateRenderer(TemplateRenderer templateRenderer)


Copyright © 2010 Atlassian. All Rights Reserved.