replyToAliasEmailWithHttpInfo method

Future<Response> replyToAliasEmailWithHttpInfo(
  1. String aliasId,
  2. String emailId,
  3. ReplyToAliasEmailOptions replyToAliasEmailOptions
)

Reply to an email

Send the reply to the email sender or reply-to and include same subject cc bcc etc. Reply to an email and the contents will be sent with the existing subject to the emails to, cc, and bcc.

Note: This method returns the HTTP Response.

Parameters:

  • String aliasId (required): ID of the alias that email belongs to

  • String emailId (required): ID of the email that should be replied to

  • ReplyToAliasEmailOptions replyToAliasEmailOptions (required):

Implementation

Future<Response> replyToAliasEmailWithHttpInfo(String aliasId, String emailId, ReplyToAliasEmailOptions replyToAliasEmailOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/aliases/{aliasId}/emails/{emailId}'
    .replaceAll('{aliasId}', aliasId)
    .replaceAll('{emailId}', emailId);

  // ignore: prefer_final_locals
  Object? postBody = replyToAliasEmailOptions;

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

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


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