public class MailServerPage extends Object
| Constructor and Description |
|---|
MailServerPage(net.sourceforge.jwebunit.junit.WebTester webTester) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSmtpServer(String serverName,
String from,
String subjectPrefix,
String hostname,
int port)
Adds a SMTP server to the Confluence configuration
|
String |
getMailServerPrefix(int index) |
int |
getNumberOfSmtpMailServers() |
public MailServerPage(net.sourceforge.jwebunit.junit.WebTester webTester)
public void addSmtpServer(String serverName, String from, String subjectPrefix, String hostname, int port)
serverName - description of the server for Confluencefrom - emails sent via this server will have this value in the from headersubjectPrefix - this prefix will be appended to all mail sent via this serverhostname - the host name of the server to connect toport - the port of the server to connect topublic int getNumberOfSmtpMailServers()
public String getMailServerPrefix(int index)
index - zero based index of which mail server to getIndexOutOfBoundsException - when the index not less than the number of mail servers.Copyright © 2003–2020 Atlassian. All rights reserved.