public interface MailManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
isConfigured() |
void |
sendHtmlEmail(javax.mail.internet.InternetAddress emailAddress,
String subject,
String body,
String plainText)
Sends an HTML email using the configured mail server (remote host / JNDI).
|
void |
sendPlainTextEmail(javax.mail.internet.InternetAddress emailAddress,
String subject,
String body)
Sends an email using the configured mail server (remote host / JNDI).
|
void sendHtmlEmail(javax.mail.internet.InternetAddress emailAddress,
String subject,
String body,
String plainText)
throws MailSendException
emailAddress - address of recipient.subject - subject header.
Will be appended with the configured mail subject prefix in the final email.body - email body html.plainText - plainText alternative to the html body text specified in bodyMailSendException - an error occured sending the email.void sendPlainTextEmail(javax.mail.internet.InternetAddress emailAddress,
String subject,
String body)
throws MailSendException
emailAddress - address of recipient.subject - subject header.
Will be appended with the configured mail subject prefix in the final email.body - email body text.MailSendException - an error occured sending the email.boolean isConfigured()
true if the mail server is fully configured (does not check if the configuration is correct)Copyright © 2019 Atlassian. All rights reserved.