putAccountSendingAttributes method

Future<void> putAccountSendingAttributes({
  1. bool? sendingEnabled,
})

Enable or disable the ability of your account to send email.

May throw TooManyRequestsException. May throw BadRequestException.

Parameter sendingEnabled : Enables or disables your account's ability to send email. Set to true to enable email sending, or set to false to disable email sending.

Implementation

Future<void> putAccountSendingAttributes({
  bool? sendingEnabled,
}) async {
  final $payload = <String, dynamic>{
    if (sendingEnabled != null) 'SendingEnabled': sendingEnabled,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/v1/email/account/sending',
    exceptionFnMap: _exceptionFns,
  );
}