| Package | Description |
|---|---|
| ru.dlabs71.library.email |
D-email is the library that provides a simple opportunity to send and receive email messages.
|
| ru.dlabs71.library.email.dto.message.outgoing |
This package contains all the DTOs for outgoing messages.
|
| ru.dlabs71.library.email.type |
This package contains all the enums using in this library.
|
| Modifier and Type | Method and Description |
|---|---|
SendingStatus |
DEmailSender.send(Set<EmailParticipant> recipients,
String subject,
String content,
ContentMessageType contentType,
Charset charsetContent,
List<EmailAttachment> attachments)
The common method is sending a text message.
|
SendingStatus |
DEmailSender.sendTemplatedMessage(Set<EmailParticipant> recipients,
String subject,
String pathToTemplate,
Map<String,Object> params,
ContentMessageType contentType,
Charset charsetContent,
List<EmailAttachment> attachments)
The common method is sending a templated message.
|
| Modifier and Type | Method and Description |
|---|---|
TemplatedOutgoingMessage.TemplatedMessageBuilder |
TemplatedOutgoingMessage.TemplatedMessageBuilder.contentType(ContentMessageType contentType)
Sets a value of a Content-Type header for content.
|
DefaultOutgoingMessage.Builder |
DefaultOutgoingMessage.Builder.contentType(ContentMessageType contentType)
Sets a value of a Content-Type header for content.
|
| Constructor and Description |
|---|
DefaultOutgoingMessage(String subject,
String content,
Charset charsetContent,
ContentMessageType contentType,
Set<EmailParticipant> recipientEmail,
List<EmailAttachment> attachments,
TransferEncoder transferEncoder)
The constructor of this class.
|
TemplatedOutgoingMessage(String subject,
String pathToTemplate,
Map<String,Object> params,
Charset charsetContent,
ContentMessageType contentType,
Set<EmailParticipant> recipientEmail)
The constructor if this message.
|
TemplatedOutgoingMessage(String subject,
String pathToTemplate,
Map<String,Object> params,
Charset charsetContent,
ContentMessageType contentType,
Set<EmailParticipant> recipientEmail,
List<EmailAttachment> attachments,
TransferEncoder transferEncoder)
The constructor if this message.
|
| Modifier and Type | Method and Description |
|---|---|
static ContentMessageType |
ContentMessageType.forContentType(String contentType)
Finds the corresponding enum value for the string (value of a Content-Type header) in the argument.
|
static ContentMessageType |
ContentMessageType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentMessageType[] |
ContentMessageType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2023. All rights reserved.