AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Verifies a domain.

This action is throttled at one request per second.

Namespace: Amazon.SimpleEmail
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public virtual VerifyDomainIdentityResponse VerifyDomainIdentity(
         VerifyDomainIdentityRequest request
)

Parameters

request
Type: Amazon.SimpleEmail.Model.VerifyDomainIdentityRequest

Container for the necessary parameters to execute the VerifyDomainIdentity service method.

Return Value
Type: Amazon.SimpleEmail.Model.VerifyDomainIdentityResponse
The response from the VerifyDomainIdentity service method, as returned by SimpleEmailService.

Examples

This example shows how to verify a domain.

Verify domain example

var sesClient = new AmazonSimpleEmailServiceClient();

var request = new VerifyDomainIdentityRequest
{
  Domain = "example.com"
};

var response = sesClient.VerifyDomainIdentity(request);

Console.WriteLine("Verification token: " + response.VerificationToken);
      

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5