VerifyDomainIdentity() public method

Verifies a domain.

This action is throttled at one request per second.

public VerifyDomainIdentity ( VerifyDomainIdentityRequest request ) : VerifyDomainIdentityResponse
request VerifyDomainIdentityRequest Container for the necessary parameters to execute the VerifyDomainIdentity service method.
return VerifyDomainIdentityResponse
Esempio n. 1
0
    public static void SESVerifyDomainIdentity()
    {
      #region SESVerifyDomainIdentity
      var sesClient = new AmazonSimpleEmailServiceClient();

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

      var response = sesClient.VerifyDomainIdentity(request);

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

      Console.ReadLine();
    }