Package io.mailtrap.api.bulkemails
Class BulkEmailsImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.apiresource.ApiResourceWithValidation
io.mailtrap.api.apiresource.SendApiResource
io.mailtrap.api.bulkemails.BulkEmailsImpl
- All Implemented Interfaces:
BulkEmails
Implementation of the
BulkEmails
interface for bulk sending emails.-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResourceWithValidation
mailtrapValidator
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchSend
(MailtrapBatchMail mail) send
(MailtrapMail mail) Sends an emailMethods inherited from class io.mailtrap.api.apiresource.SendApiResource
validateBatchPayload, validateMailPayload
Methods inherited from class io.mailtrap.api.apiresource.ApiResourceWithValidation
validateRequestBodyAndThrowException
-
Constructor Details
-
BulkEmailsImpl
-
-
Method Details
-
send
Description copied from interface:BulkEmails
Sends an email- Specified by:
send
in interfaceBulkEmails
- Parameters:
mail
- The email message to be sent.- Returns:
- A response indicating the result of the send operation.
-
batchSend
public BatchSendResponse batchSend(MailtrapBatchMail mail) throws HttpException, InvalidRequestBodyException - Specified by:
batchSend
in interfaceBulkEmails
- Throws:
HttpException
InvalidRequestBodyException
-