AWSSESIdentityMailFromDomainAttributes
Objective-C
@interface AWSSESIdentityMailFromDomainAttributes
Swift
class AWSSESIdentityMailFromDomainAttributes
Represents the custom MAIL FROM domain attributes of a verified identity (email address or domain).
Required parameters: [MailFromDomain, MailFromDomainStatus, BehaviorOnMXFailure]
-
The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A value of
UseDefaultValue
indicates that if Amazon SES cannot read the required MX record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value ofRejectMessage
indicates that if Amazon SES cannot read the required MX record, Amazon SES returns aMailFromDomainNotVerified
error and does not send the email.The custom MAIL FROM setup states that result in this behavior are
Pending
,Failed
, andTemporaryFailure
.Declaration
Objective-C
@property (nonatomic) AWSSESBehaviorOnMXFailure behaviorOnMXFailure;
Swift
var behaviorOnMXFailure: AWSSESBehaviorOnMXFailure { get set }
-
The custom MAIL FROM domain that the identity is configured to use.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable mailFromDomain;
Swift
var mailFromDomain: String? { get set }
-
The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM domain setup. If the state is
Success
, Amazon SES uses the specified custom MAIL FROM domain when the verified identity sends an email. All other states indicate that Amazon SES takes the action described byBehaviorOnMXFailure
.Declaration
Objective-C
@property (nonatomic) AWSSESCustomMailFromStatus mailFromDomainStatus;
Swift
var mailFromDomainStatus: AWSSESCustomMailFromStatus { get set }