Paws::SES::SetIdentityMailFromDomain - Arguments for method SetIdentityMailFromDomain on Paws::SES


This class represents the parameters used for calling the method SetIdentityMailFromDomain on the Amazon Simple Email Service service. Use the attributes of this class as arguments to method SetIdentityMailFromDomain.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SetIdentityMailFromDomain.


    my $email = Paws->service('SES');
    # SetIdentityMailFromDomain
    # The following example configures Amazon SES to use a custom MAIL FROM
    # domain for an identity:
    my $SetIdentityMailFromDomainResponse = $email->SetIdentityMailFromDomain(
      'BehaviorOnMXFailure' => 'UseDefaultValue',
      'Identity'            => '',
      'MailFromDomain'      => ''

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


BehaviorOnMXFailure => Str

The action that you want Amazon SES to take if it cannot successfully read the required MX record when you send an email. If you choose UseDefaultValue, Amazon SES will use (or a subdomain of that) as the MAIL FROM domain. If you choose RejectMessage, Amazon SES will return a MailFromDomainNotVerified error and not send the email.

The action specified in BehaviorOnMXFailure is taken when the custom MAIL FROM domain setup is in the Pending, Failed, and TemporaryFailure states.

Valid values are: "UseDefaultValue", "RejectMessage"

REQUIRED Identity => Str

The verified identity for which you want to enable or disable the specified custom MAIL FROM domain.

MailFromDomain => Str

The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must 1) be a subdomain of the verified identity, 2) not be used in a "From" address if the MAIL FROM domain is the destination of email feedback forwarding (for more information, see the Amazon SES Developer Guide (, and 3) not be used to receive emails. A value of null disables the custom MAIL FROM setting for the identity.


This class forms part of Paws, documenting arguments for method SetIdentityMailFromDomain in Paws::SES


The source code is located here:

Please report bugs to: