Package io.mailtrap.api.testingemails
Class TestingEmailsImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.apiresource.ApiResourceWithValidation
io.mailtrap.api.apiresource.SendApiResource
io.mailtrap.api.testingemails.TestingEmailsImpl
- All Implemented Interfaces:
TestingEmails
Implementation of the
TestingEmails
interface for sending emails in the sandbox environment.-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResourceWithValidation
customValidator
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.mailtrap.api.apiresource.SendApiResource
validateRequestBodyOrThrowException
Methods inherited from class io.mailtrap.api.apiresource.ApiResourceWithValidation
validateRequestBodyAndThrowException
-
Constructor Details
-
TestingEmailsImpl
-
-
Method Details
-
send
Description copied from interface:TestingEmails
Sends an email- Specified by:
send
in interfaceTestingEmails
- Parameters:
mail
- The email message to be sent.inboxId
- ID of the testing inbox, where to send an email.- Returns:
- A response indicating the result of the send operation.
-