getIdentityMailFromDomainAttributes method

Future<GetIdentityMailFromDomainAttributesResponse> getIdentityMailFromDomainAttributes({
  1. required List<String> identities,
})

Returns the custom MAIL FROM attributes for a list of identities (email addresses : domains).

This operation is throttled at one request per second and can only get custom MAIL FROM attributes for up to 100 identities at a time.

Parameter identities : A list of one or more identities.

Implementation

Future<GetIdentityMailFromDomainAttributesResponse>
    getIdentityMailFromDomainAttributes({
  required List<String> identities,
}) async {
  final $request = <String, String>{
    if (identities.isEmpty)
      'Identities': ''
    else
      for (var i1 = 0; i1 < identities.length; i1++)
        'Identities.member.${i1 + 1}': identities[i1],
  };
  final $result = await _protocol.send(
    $request,
    action: 'GetIdentityMailFromDomainAttributes',
    version: '2010-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    resultWrapper: 'GetIdentityMailFromDomainAttributesResult',
  );
  return GetIdentityMailFromDomainAttributesResponse.fromXml($result);
}