getRawEmailContentsWithHttpInfo method

Future<Response> getRawEmailContentsWithHttpInfo(
  1. String emailId
)

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

Returns a raw, unparsed, and unprocessed 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 getRawEmailJson endpoint

Note: This method returns the HTTP Response.

Parameters:

  • String emailId (required): ID of email

Implementation

Future<Response> getRawEmailContentsWithHttpInfo(String emailId,) async {
  // ignore: prefer_const_declarations
  final path = r'/emails/{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,
  );
}