sendEmail function
Future<ApiResponse<Object?> >
sendEmail(
- ExsitedClient client,
- Object payload, {
- bool? raiseOnError,
- String? responseFormat,
POST /api/{api_version}/communications/send_email
Email a document; the body names one of invoice, purchase_invoice,
account_statement or payment, each an id beside to, cc, bcc,
subject, body and template. Sends real mail.
No typed view. Read response.map.
Implementation
Future<ApiResponse<Object?>> sendEmail(
ExsitedClient client,
Object payload, {
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendPostRequest(CommunicationsUrls.communicationsSendEmail,
jsonBody: payload,
raiseOnError: raiseOnError,
responseFormat: responseFormat);