Package com.atlassian.bamboo.mail
Class BambooMailer
- java.lang.Object
-
- com.atlassian.bamboo.mail.BambooMailer
-
public class BambooMailer extends Object
-
-
Constructor Summary
Constructors Constructor Description BambooMailer(EmailService emailService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
send(String template, Map context, List recipients, String subject)
void
send(String template, Map context, List recipients, String subject, com.atlassian.mail.server.SMTPMailServer mailServer)
void
setTemplateRenderer(TemplateRenderer templateRenderer)
-
-
-
Constructor Detail
-
BambooMailer
@Inject public BambooMailer(EmailService emailService)
-
-
Method Detail
-
send
public void send(String template, Map context, List recipients, String subject) throws 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
ofString
s representing email addresses. Must be specified.subject
- - the subject line. Can be null.- Throws:
Exception
-
send
public void send(String template, Map context, List recipients, String subject, com.atlassian.mail.server.SMTPMailServer mailServer) throws 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
ofString
s representing email addresses. Must be specified.subject
- - the subject line. Can be null.mailServer
- - TheSMTPMailServer
that you would like to use to send this email. If none is specified, the configured SMTP server will be used.- Throws:
Exception
-
setTemplateRenderer
public void setTemplateRenderer(TemplateRenderer templateRenderer)
-
-