Modifier and Type | Field and Description |
---|---|
InternetAddress[] |
bcc |
InternetAddress[] |
cc |
MimeContent |
content |
InternetAddress |
from |
String |
subject |
InternetAddress[] |
to |
Constructor and Description |
---|
Message(String subject,
MimeContent content,
InternetAddress from,
InternetAddress[] to,
InternetAddress[] cc,
InternetAddress[] bcc)
Create a new
Message with the supplied parameters. |
Message(String subject,
MimeContent content,
InternetAddress from,
String... to) |
Message(String subject,
MimeContent content,
InternetAddress from,
String[] to,
String[] cc,
String[] bcc)
Create a new
Message with the supplied parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
void |
failure(MessagingException e)
Default no-op implementation of failure callback.
|
int |
hashCode() |
void |
success()
Default no-op implementation of success callback.
|
public final String subject
public final MimeContent content
public final InternetAddress from
public final InternetAddress[] to
public final InternetAddress[] cc
public final InternetAddress[] bcc
public Message(String subject, MimeContent content, InternetAddress from, String[] to, String[] cc, String[] bcc) throws AddressException
Message
with the supplied parameters.subject
- The subject of the message.content
- The MimeContent
content.from
- The "from" InternetAddress
.to
- A string array of "to" email addresses.cc
- A string array of "cc" email addresses.bcc
- A string array of "bcc" email addresses.AddressException
- If the parse of an email address failed.IllegalArgumentException
- If subject
, content
,
from
, or each of to
, cc
, and
bcc
are null.public Message(String subject, MimeContent content, InternetAddress from, InternetAddress[] to, InternetAddress[] cc, InternetAddress[] bcc)
Message
with the supplied parameters.subject
- The subject of the message.content
- The MimeContent
content.from
- The "from" InternetAddress
.to
- A InternetAddress
array of "to" addresses.cc
- A InternetAddress
array of "cc" addresses.bcc
- A InternetAddress
array of "bcc" addresses.IllegalArgumentException
- If subject
, content
,
from
, or each of to
, cc
, and
bcc
are null.public Message(String subject, MimeContent content, InternetAddress from, String... to) throws AddressException
AddressException
public void success()
public void failure(MessagingException e)
e
- The MessagingException
that led to the failure.Copyright © 2019 LibJ. All rights reserved.