Package io.mailtrap.api.testingemails
Interface TestingEmails
- All Known Implementing Classes:
TestingEmailsImpl
public interface TestingEmails
Interface representing the Mailtrap Testing API for sending emails.
-
Method Summary
-
Method Details
-
send
SendResponse send(MailtrapMail mail, long inboxId) throws HttpException, InvalidRequestBodyException Sends an email- 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.
- Throws:
HttpException
- If there is an HTTP-related error during the send operation.InvalidRequestBodyException
- If the request body is invalid.
-