getRawSentEmailContentsWithHttpInfo method

Future<Response> getRawSentEmailContentsWithHttpInfo(
  1. String emailId
)

Get raw sent email string. Returns unparsed raw SMTP message with headers and body.

Returns a raw, unparsed, and unprocessed sent email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawSentEmailJson endpoint

Note: This method returns the HTTP Response.

Parameters:

  • String emailId (required): ID of email

Implementation

Future<Response> getRawSentEmailContentsWithHttpInfo(String emailId,) async {
  // ignore: prefer_const_declarations
  final path = r'/sent/{emailId}/raw'
    .replaceAll('{emailId}', emailId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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