sendEmailSimpleWithHttpInfo method

Future<Response> sendEmailSimpleWithHttpInfo(
  1. SimpleSendEmailOptions simpleSendEmailOptions
)

Send an email

If no senderId or inboxId provided a random email address will be used to send from.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> sendEmailSimpleWithHttpInfo(SimpleSendEmailOptions simpleSendEmailOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/sendEmail';

  // ignore: prefer_final_locals
  Object? postBody = simpleSendEmailOptions;

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