public class BambooMailer extends Object
Constructor and Description |
---|
BambooMailer(EmailService emailService) |
Modifier and Type | Method and 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) |
@Inject public BambooMailer(EmailService emailService)
public void send(String template, Map context, List recipients, String subject) throws Exception
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 String
s representing email addresses. Must be specified.subject
- - the subject line. Can be null.Exception
public void send(String template, Map context, List recipients, String subject, com.atlassian.mail.server.SMTPMailServer mailServer) throws Exception
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 String
s 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.Exception
public void setTemplateRenderer(TemplateRenderer templateRenderer)
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.