sendEmailAndConfirmWithHttpInfo method

Future<Response> sendEmailAndConfirmWithHttpInfo(
  1. String inboxId,
  2. SendEmailOptions sendEmailOptions
)

Send email and return sent confirmation

Sister method for standard sendEmail method with the benefit of returning a SentEmail entity confirming the successful sending of the email with a link to the sent object created for it.

Note: This method returns the HTTP Response.

Parameters:

  • String inboxId (required): ID of the inbox you want to send the email from

  • SendEmailOptions sendEmailOptions (required):

Implementation

Future<Response> sendEmailAndConfirmWithHttpInfo(String inboxId, SendEmailOptions sendEmailOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/inboxes/{inboxId}/confirm'
    .replaceAll('{inboxId}', inboxId);

  // ignore: prefer_final_locals
  Object? postBody = sendEmailOptions;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}