forwardEmailWithHttpInfo method

Future<Response> forwardEmailWithHttpInfo(
  1. String emailId,
  2. ForwardEmailOptions forwardEmailOptions
)

Forward email to recipients

Forward an existing email to new recipients. The sender of the email will be the inbox that received the email you are forwarding. You can override the sender with the from option. Note you must have access to the from address in MailSlurp to use the override. For more control consider fetching the email and sending it a new using the send email endpoints.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> forwardEmailWithHttpInfo(String emailId, ForwardEmailOptions forwardEmailOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/emails/{emailId}/forward'
    .replaceAll('{emailId}', emailId);

  // ignore: prefer_final_locals
  Object? postBody = forwardEmailOptions;

  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,
  );
}