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)
Initialize with single server setups
|
GreenMailRule(ServerSetup[] serverSetups)
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 |
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(String bindAddress)
Create a deep copy.
|
Modifier and Type | Method and Description |
---|---|
static javax.mail.internet.MimeMessage |
GreenMailUtil.createTextEmail(String to,
String from,
String subject,
String msg,
ServerSetup setup) |
static javax.mail.Session |
GreenMailUtil.getSession(ServerSetup setup) |
static javax.mail.Session |
GreenMailUtil.getSession(ServerSetup setup,
Properties mailProps)
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.
|
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–2017 Icegreen Technologies. All rights reserved.