Class CfnEmailIdentityPropsMixin.MailFromAttributesProperty
Used to enable or disable the custom Mail-From domain configuration for an email identity.
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.SES
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnEmailIdentityPropsMixin.MailFromAttributesProperty : CfnEmailIdentityPropsMixin.IMailFromAttributesProperty
Syntax (vb)
Public Class CfnEmailIdentityPropsMixin.MailFromAttributesProperty Implements CfnEmailIdentityPropsMixin.IMailFromAttributesProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.SES;
var mailFromAttributesProperty = new MailFromAttributesProperty {
BehaviorOnMxFailure = "behaviorOnMxFailure",
MailFromDomain = "mailFromDomain"
};
Synopsis
Constructors
| MailFromAttributesProperty() | Used to enable or disable the custom Mail-From domain configuration for an email identity. |
Properties
| BehaviorOnMxFailure | The action to take if the required MX record isn't found when you send an email. |
| MailFromDomain | The custom MAIL FROM domain that you want the verified identity to use. |
Constructors
MailFromAttributesProperty()
Used to enable or disable the custom Mail-From domain configuration for an email identity.
public MailFromAttributesProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.SES;
var mailFromAttributesProperty = new MailFromAttributesProperty {
BehaviorOnMxFailure = "behaviorOnMxFailure",
MailFromDomain = "mailFromDomain"
};
Properties
BehaviorOnMxFailure
The action to take if the required MX record isn't found when you send an email.
public string? BehaviorOnMxFailure { get; set; }
Property Value
Remarks
When you set this value to USE_DEFAULT_VALUE , the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to REJECT_MESSAGE , the Amazon SES API v2 returns a MailFromDomainNotVerified error, and doesn't attempt to deliver the email.
These behaviors are taken when the custom MAIL FROM domain configuration is in the Pending , Failed , and TemporaryFailure states.
Valid Values: USE_DEFAULT_VALUE | REJECT_MESSAGE
MailFromDomain
The custom MAIL FROM domain that you want the verified identity to use.
public string? MailFromDomain { get; set; }
Property Value
Remarks
The MAIL FROM domain must meet the following criteria: