@Immutable
public interface Envelope
The best way is to use Envelope.Mime, but
you can easily create your own implementation of it.
It is recommended to always wrap your envelope into
Envelope.Safe.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Envelope.Constant
Envelope that always returns the same message (within one hour).
|
static class |
Envelope.Draft
Envelope that adds DRAFT flag to the message.
|
static class |
Envelope.Mime
Default envelope.
|
static class |
Envelope.Safe
Safe envelope that adds missing parts to the message.
|
static class |
Envelope.Strict
Strict envelope that fails if message is not valid.
|
| Modifier and Type | Field and Description |
|---|---|
static Envelope |
EMPTY
Empty (always returns an empty MIME message).
|
| Modifier and Type | Method and Description |
|---|---|
javax.mail.Message |
unwrap()
Get a message out of it.
|
static final Envelope EMPTY
javax.mail.Message unwrap()
throws IOException
IOException - If failsCopyright © 2012–2021 jcabi.com. All rights reserved.