Interface MailServerAdministration.SmtpMailServerAdministration
- Enclosing interface:
MailServerAdministration
public static interface MailServerAdministration.SmtpMailServerAdministration
Represents the Smtp Mail Server Panel in the Mail Servers Administration Page.
- Since:
- v4.3
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new SMTP Server Configurationvoidenable()get()Gets the current Smtp Mail Server configuration.goTo()Navigates to the Mail Servers Administration Page.booleanDetermines whether an SMTP Server has been configured.booleanbooleanbooleanDetermines whether the Smtp Mail Server Administration Panel is on the page.
-
Method Details
-
isPresent
boolean isPresent()Determines whether the Smtp Mail Server Administration Panel is on the page.- Returns:
- true if the Smtp Mail Server Administration Panel is on the page; otherwise, false.
-
get
Gets the current Smtp Mail Server configuration.- Returns:
- the current Smtp Mail Server configuration. If there is no configured mail server null is returned.
-
isConfigured
boolean isConfigured()Determines whether an SMTP Server has been configured.- Returns:
- true if an Smtp Server has been configured; otherwise, false.
-
add
MailServerAdministration add(String name, String fromAddress, String replyToAddress, String emailPrefix, String hostName) Adds a new SMTP Server Configuration- Parameters:
name- The name of this server within JIRA.fromAddress- The default address this server will use to send emails from.replyToAddress- The default address the emails from this server will be replied at.emailPrefix- The prefix for all outgoing email subjects.hostName- The SMTP host name of your mail server.- Returns:
- this instance of the mail servers administration page.
-
goTo
Navigates to the Mail Servers Administration Page.- Returns:
- this instance of the page.
-
sendTestEmail
MailServerAdministration.SendTestEmail sendTestEmail() -
isEnabled
boolean isEnabled() -
isDisabled
boolean isDisabled() -
enable
void enable()
-