| 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.converter.incoming |
This class contains converters that convert from
jakarta.mail.Message to incoming message DTO. |
| ru.dlabs71.library.email.converter.outgoing |
This class contains converters that convert from outgoing message DTO to
jakarta.mail.Message. |
| ru.dlabs71.library.email.dto.message.common |
This package contains all the common classes for constructing message DTOs.
|
| ru.dlabs71.library.email.dto.message.incoming |
This package contains all the DTOs for incoming messages.
|
| ru.dlabs71.library.email.dto.message.outgoing |
This package contains all the DTOs for outgoing messages.
|
| ru.dlabs71.library.email.util |
This package contains all the helper classes that are used by the library or can be used by you.
|
| Modifier and Type | Method and Description |
|---|---|
SendingStatus |
DEmailSender.sendHtml(Collection<String> emails,
String subject,
String content,
EmailAttachment... attachments)
The method is distributing a message to a group recipients with attachments.
|
SendingStatus |
DEmailSender.sendHtml(Set<String> emails,
String subject,
String content,
EmailAttachment... attachments)
The method is distributing a message to a group recipients with attachments.
|
SendingStatus |
DEmailSender.sendHtml(String email,
String subject,
String content,
EmailAttachment... attachments)
The method is sending a message with attachments.
|
SendingStatus |
DEmailSender.sendHtmlTemplated(Collection<String> emails,
String subject,
String pathToTemplate,
Map<String,Object> params,
EmailAttachment... attachments)
The method is distributing a message to a group recipients with attachments.
|
SendingStatus |
DEmailSender.sendHtmlTemplated(String email,
String subject,
String pathToTemplate,
Map<String,Object> params,
EmailAttachment... attachments)
The method is sending a message with attachments.
|
SendingStatus |
DEmailSender.sendText(Collection<String> emails,
String subject,
String content,
EmailAttachment... attachments)
The method is distributing a message to a group recipients with attachments.
|
SendingStatus |
DEmailSender.sendText(String email,
String subject,
String content,
EmailAttachment... attachments)
The method is sending a message with attachments.
|
SendingStatus |
DEmailSender.sendTextTemplated(Collection<String> emails,
String subject,
String pathToTemplate,
Map<String,Object> params,
EmailAttachment... attachments)
The method is distributing a message to a group of recipients with attachments.
|
SendingStatus |
DEmailSender.sendTextTemplated(String email,
String subject,
String pathToTemplate,
Map<String,Object> params,
EmailAttachment... attachments)
The method is sending a message with attachments.
|
| 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.sendHtml(Collection<String> emails,
String subject,
String content,
List<EmailAttachment> attachments)
The method is distributing a message to a group recipients with attachments.
|
SendingStatus |
DEmailSender.sendHtml(Set<EmailParticipant> recipients,
String subject,
String content,
List<EmailAttachment> attachments)
The method is distributing a message to a group recipients with attachments.
|
SendingStatus |
DEmailSender.sendHtml(String email,
String subject,
String content,
List<EmailAttachment> attachments)
The method is sending a message with attachments.
|
SendingStatus |
DEmailSender.sendHtmlTemplated(Collection<String> emails,
String subject,
String pathToTemplate,
Map<String,Object> params,
List<EmailAttachment> attachments)
The method is distributing a message to a group recipients with attachments.
|
SendingStatus |
DEmailSender.sendHtmlTemplated(Set<EmailParticipant> recipients,
String subject,
String pathToTemplate,
Map<String,Object> params,
List<EmailAttachment> attachments)
The method is distributing a message to a group of recipients with attachments.
|
SendingStatus |
DEmailSender.sendHtmlTemplated(String email,
String subject,
String pathToTemplate,
Map<String,Object> params,
List<EmailAttachment> attachments)
The method is sending a message with attachments.
|
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.
|
SendingStatus |
DEmailSender.sendText(Collection<String> emails,
String subject,
String content,
List<EmailAttachment> attachments)
The method is distributing a message to a group recipients with attachments.
|
SendingStatus |
DEmailSender.sendText(Set<EmailParticipant> recipients,
String subject,
String content,
List<EmailAttachment> attachments)
The method is distributing a message to a group recipients with attachments.
|
SendingStatus |
DEmailSender.sendText(String email,
String subject,
String content,
List<EmailAttachment> attachments)
The method is sending a message with attachments.
|
SendingStatus |
DEmailSender.sendTextTemplated(Collection<String> emails,
String subject,
String pathToTemplate,
Map<String,Object> params,
List<EmailAttachment> attachments)
The method is distributing a message to a group of recipients with attachments.
|
SendingStatus |
DEmailSender.sendTextTemplated(Set<EmailParticipant> recipients,
String subject,
String pathToTemplate,
Map<String,Object> params,
List<EmailAttachment> attachments)
The method is distributing a message to a group of recipients with attachments.
|
SendingStatus |
DEmailSender.sendTextTemplated(String email,
String subject,
String pathToTemplate,
Map<String,Object> params,
List<EmailAttachment> attachments)
The method is sending a message with attachments.
|
| Modifier and Type | Method and Description |
|---|---|
EmailAttachment |
MessagePartConverter.getAttachment(jakarta.mail.Part part)
Converts the part of a
Message to an object of the class EmailAttachment. |
| Modifier and Type | Method and Description |
|---|---|
void |
MessagePartConverter.ContentAndAttachments.addAttachment(EmailAttachment attachment)
Adds attachment to the corresponding list.
|
| Modifier and Type | Method and Description |
|---|---|
jakarta.mail.BodyPart |
JakartaMessagePartConverter.convertAttachmentPart(EmailAttachment attachment)
Converts an email attachment to a
BodyPart instances. |
| Modifier and Type | Method and Description |
|---|---|
List<EmailAttachment> |
Message.getAttachments()
Returns all the attached files to a message.
|
| Modifier and Type | Method and Description |
|---|---|
List<EmailAttachment> |
MessageView.getAttachments()
Returns empty list.
|
| Modifier and Type | Method and Description |
|---|---|
TemplatedOutgoingMessage.TemplatedMessageBuilder |
TemplatedOutgoingMessage.TemplatedMessageBuilder.addAttachment(EmailAttachment attachment)
Adds email attachments.
|
DefaultOutgoingMessage.Builder |
DefaultOutgoingMessage.Builder.addAttachment(EmailAttachment attachment)
Adds email attachments.
|
| Modifier and Type | Method and Description |
|---|---|
TemplatedOutgoingMessage.TemplatedMessageBuilder |
TemplatedOutgoingMessage.TemplatedMessageBuilder.attachments(List<EmailAttachment> attachments)
Sets email attachments.
|
DefaultOutgoingMessage.Builder |
DefaultOutgoingMessage.Builder.attachments(List<EmailAttachment> attachments)
Sets email attachments.
|
| Constructor and Description |
|---|
DefaultOutgoingMessage(String subject,
List<ContentMessage> contents,
Set<EmailParticipant> recipientEmail,
List<EmailAttachment> attachments,
TransferEncoder transferEncoder)
The constructor of this class.
|
DefaultOutgoingMessage(String subject,
String content,
Charset charsetContent,
ContentMessageType contentType,
Set<EmailParticipant> recipientEmail,
List<EmailAttachment> attachments,
TransferEncoder transferEncoder)
The constructor of this class.
|
DefaultOutgoingMessage(String subject,
String content,
Set<EmailParticipant> recipientEmail,
List<EmailAttachment> attachments)
The constructor of this class.
|
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.
|
TemplatedOutgoingMessage(String subject,
String pathToTemplate,
Map<String,Object> params,
Set<EmailParticipant> recipientEmail,
List<EmailAttachment> attachments)
The constructor if this message.
|
| Modifier and Type | Method and Description |
|---|---|
EmailAttachment |
AttachmentUtils.create(String pathToFile)
Creates an object of the
EmailAttachment class by the path to file. |
EmailAttachment |
AttachmentUtils.create(String pathToFile,
FileParametersDetector detector)
Creates an object of the
EmailAttachment class by the path to file argument
The path to file must start with the following prefixes: "file://", "classpath:" or a path separator. |
Copyright © 2023. All rights reserved.