sendMail method

Future<Map<String, dynamic>> sendMail(
  1. SendMailOptions options
)

Implementation

Future<Map<String, dynamic>> sendMail(SendMailOptions options) async {
  final formData = await getFormBody(options);
  final response = await httpService.sendRequest(
    HttpClientParams(
      method: 'post',
      path: '/send',
      body: formData, // Use formData directly for attachments
    ),
  );

/*  if (response != null) {
    throw response; // Rethrow the error
  }*/

  return response;
}