| Package | Description |
|---|---|
| com.icegreen.greenmail.imap | |
| com.icegreen.greenmail.junit | |
| com.icegreen.greenmail.pop3 | |
| com.icegreen.greenmail.server | |
| com.icegreen.greenmail.smtp | |
| com.icegreen.greenmail.util |
| Constructor and Description |
|---|
ImapServer(ServerSetup setup,
Managers managers) |
| Constructor and Description |
|---|
GreenMailRule(ServerSetup serverSetup)
Deprecated.
Initialize with single server setups
|
GreenMailRule(ServerSetup[] serverSetups)
Deprecated.
Initialize with multiple server setups
|
| Constructor and Description |
|---|
Pop3Server(ServerSetup setup,
Managers managers) |
| Modifier and Type | Field and Description |
|---|---|
protected ServerSetup |
AbstractServer.setup |
| Modifier and Type | Method and Description |
|---|---|
ServerSetup |
AbstractServer.getServerSetup() |
| Constructor and Description |
|---|
AbstractServer(ServerSetup setup,
Managers managers) |
| Constructor and Description |
|---|
SmtpServer(ServerSetup setup,
Managers managers) |
| Modifier and Type | Field and Description |
|---|---|
static ServerSetup[] |
ServerSetup.ALL |
static ServerSetup[] |
ServerSetupTest.ALL |
protected ServerSetup[] |
GreenMail.config |
static ServerSetup |
ServerSetup.IMAP |
static ServerSetup |
ServerSetupTest.IMAP |
static ServerSetup |
ServerSetup.IMAPS |
static ServerSetup |
ServerSetupTest.IMAPS |
static ServerSetup |
ServerSetup.POP3 |
static ServerSetup |
ServerSetupTest.POP3 |
static ServerSetup |
ServerSetup.POP3S |
static ServerSetup |
ServerSetupTest.POP3S |
static ServerSetup |
ServerSetup.SMTP |
static ServerSetup |
ServerSetupTest.SMTP |
static ServerSetup[] |
ServerSetup.SMTP_IMAP |
static ServerSetup[] |
ServerSetupTest.SMTP_IMAP |
static ServerSetup[] |
ServerSetup.SMTP_POP3 |
static ServerSetup[] |
ServerSetupTest.SMTP_POP3 |
static ServerSetup[] |
ServerSetup.SMTP_POP3_IMAP |
static ServerSetup[] |
ServerSetupTest.SMTP_POP3_IMAP |
static ServerSetup |
ServerSetup.SMTPS |
static ServerSetup |
ServerSetupTest.SMTPS |
static ServerSetup[] |
ServerSetup.SMTPS_IMAPS |
static ServerSetup[] |
ServerSetupTest.SMTPS_IMAPS |
static ServerSetup[] |
ServerSetup.SMTPS_POP3S |
static ServerSetup[] |
ServerSetupTest.SMTPS_POP3S |
static ServerSetup[] |
ServerSetup.SMTPS_POP3S_IMAPS |
static ServerSetup[] |
ServerSetupTest.SMTPS_POP3S_IMAPS |
| Modifier and Type | Method and Description |
|---|---|
ServerSetup[] |
PropertiesBasedServerSetupBuilder.build(Properties properties)
Creates a server setup based on provided properties.
|
ServerSetup |
ServerSetup.createCopy()
Create a deep copy.
|
ServerSetup |
ServerSetup.createCopy(int port,
String bindAddress,
String protocol)
Create a deep copy.
|
ServerSetup |
ServerSetup.createCopy(String bindAddress)
Create a deep copy.
|
ServerSetup |
ServerSetup.dynamicPort()
Enable dynamic port allocation.
|
static ServerSetup[] |
ServerSetup.dynamicPort(ServerSetup[] serverSetups)
Creates a copy with dynamic ports (auto-detecting available ports) enabled.
|
ServerSetup |
ServerSetup.setVerbose(boolean verbose) |
static ServerSetup[] |
ServerSetup.verbose(ServerSetup[] serverSetups)
Creates a copy with verbose mode enabled.
|
ServerSetup |
ServerSetup.withPort(int port)
Creates a deep copy and updates port.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,AbstractServer> |
GreenMail.createServices(ServerSetup[] config,
Managers mgr)
Create the required services according to the server setup
|
static MimeMessage |
GreenMailUtil.createTextEmail(String to,
String from,
String subject,
String msg,
ServerSetup setup) |
static ServerSetup[] |
ServerSetup.dynamicPort(ServerSetup[] serverSetups)
Creates a copy with dynamic ports (auto-detecting available ports) enabled.
|
static Session |
GreenMailUtil.getSession(ServerSetup setup)
Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.
|
static Session |
GreenMailUtil.getSession(ServerSetup setup,
Properties mailProps)
Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.
|
static Session |
GreenMailUtil.getSession(ServerSetup setup,
Properties mailProps,
boolean debug)
Gets a JavaMail Session for given server type such as IMAP and additional props for JavaMail.
|
static void |
GreenMailUtil.sendAttachmentEmail(String to,
String from,
String subject,
String msg,
byte[] attachment,
String contentType,
String filename,
String description,
ServerSetup setup) |
static void |
GreenMailUtil.sendMessageBody(String to,
String from,
String subject,
Object body,
String contentType,
ServerSetup serverSetup)
Send the message with the given attributes and the given body using the specified SMTP settings
|
static void |
GreenMailUtil.sendTextEmail(String to,
String from,
String subject,
String msg,
ServerSetup setup)
Sends a text message using given server setup for SMTP.
|
static ServerSetup[] |
ServerSetup.verbose(ServerSetup[] serverSetups)
Creates a copy with verbose mode enabled.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PropertiesBasedServerSetupBuilder.addDefaultSetups(String hostname,
Properties properties,
List<ServerSetup> serverSetups) |
protected void |
PropertiesBasedServerSetupBuilder.addSetup(String hostname,
String protocol,
Properties properties,
List<ServerSetup> serverSetups) |
protected void |
PropertiesBasedServerSetupBuilder.addTestSetups(String hostname,
Properties properties,
List<ServerSetup> serverSetups) |
| Constructor and Description |
|---|
GreenMail(ServerSetup config)
Call this constructor if you want to run one of the email servers only
|
GreenMail(ServerSetup[] config)
Call this constructor if you want to run more than one of the email servers
|
Copyright © 2006–2022 Icegreen Technologies. All rights reserved.