Amazon.SimpleEmail.AmazonSimpleEmailServiceClient.VerifyDomainDkim C# (CSharp) Method

VerifyDomainDkim() public method

Returns a set of DKIM tokens for a domain. DKIM tokens are character strings that represent your domain's identity. Using these tokens, you will need to create DNS CNAME records that point to DKIM public keys hosted by Amazon SES. Amazon Web Services will eventually detect that you have updated your DNS records; this detection process may take up to 72 hours. Upon successful detection, Amazon SES will be able to DKIM-sign email originating from that domain.

This action is throttled at one request per second.

To enable or disable Easy DKIM signing for a domain, use the SetIdentityDkimEnabled action.

For more information about creating DNS records using DKIM tokens, go to the Amazon SES Developer Guide.

public VerifyDomainDkim ( VerifyDomainDkimRequest request ) : VerifyDomainDkimResponse
request VerifyDomainDkimRequest Container for the necessary parameters to execute the VerifyDomainDkim service method.
return VerifyDomainDkimResponse
        public VerifyDomainDkimResponse VerifyDomainDkim(VerifyDomainDkimRequest request)
        {
            var marshaller = new VerifyDomainDkimRequestMarshaller();
            var unmarshaller = VerifyDomainDkimResponseUnmarshaller.Instance;

            return Invoke<VerifyDomainDkimRequest,VerifyDomainDkimResponse>(request, marshaller, unmarshaller);
        }

Usage Example

Exemplo n.º 1
0
    public static void SESVerifyDomainDkim()
    {
      #region SESVerifyDomainDkim
      var sesClient = new AmazonSimpleEmailServiceClient();

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

      var response = sesClient.VerifyDomainDkim(request);

      Console.WriteLine("DKIM tokens:");

      foreach (var token in response.DkimTokens)
      {
        Console.WriteLine("  " + token);
      }
      #endregion

      Console.ReadLine();
    }
AmazonSimpleEmailServiceClient