Package io.mailtrap.api.sendingemails
Interface SendingEmails
- All Known Implementing Classes:
SendingEmailsImpl
public interface SendingEmails
Interface representing the Mailtrap Sending API for sending emails.
-
Method Summary
Modifier and TypeMethodDescriptionbatchSend(MailtrapBatchMail mail) send(MailtrapMail mail) Sends an email
-
Method Details
-
send
Sends an email- Parameters:
mail- The email message to be sent.- 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.
-
batchSend
BatchSendResponse batchSend(MailtrapBatchMail mail) throws HttpException, InvalidRequestBodyException
-