sendEmailWithQueue method
Future<void>
sendEmailWithQueue(
- String inboxId,
- bool validateBeforeEnqueue,
- SendEmailOptions sendEmailOptions
Send email with queue
Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue.
Parameters:
-
String inboxId (required): ID of the inbox you want to send the email from
-
bool validateBeforeEnqueue (required): Validate before adding to queue
-
SendEmailOptions sendEmailOptions (required):
Implementation
Future<void> sendEmailWithQueue(String inboxId, bool validateBeforeEnqueue, SendEmailOptions sendEmailOptions,) async {
final response = await sendEmailWithQueueWithHttpInfo(inboxId, validateBeforeEnqueue, sendEmailOptions,);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
}