Class CfnEmailIdentity.MailFromAttributesProperty
Used to enable or disable the custom Mail-From domain configuration for an email identity.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class MailFromAttributesProperty : Object, CfnEmailIdentity.IMailFromAttributesProperty
Syntax (vb)
Public Class MailFromAttributesProperty
Inherits Object
Implements CfnEmailIdentity.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.AWS.SES;
var mailFromAttributesProperty = new MailFromAttributesProperty {
BehaviorOnMxFailure = "behaviorOnMxFailure",
MailFromDomain = "mailFromDomain"
};
Synopsis
Constructors
MailFromAttributesProperty() |
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()
public MailFromAttributesProperty()
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
System.String
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
System.String
Remarks
The MAIL FROM domain must meet the following criteria: