ListVerifiedEmailAddresses() public method

Returns a list containing all of the email addresses that have been verified.

The ListVerifiedEmailAddresses action is deprecated as of the May 15, 2012 release of Domain Verification. The ListIdentities action is now preferred.

This action is throttled at one request per second.

public ListVerifiedEmailAddresses ( ) : ListVerifiedEmailAddressesResponse
return ListVerifiedEmailAddressesResponse
示例#1
0
    public static void SESListVerifiedEmailAddresses()
    {
      #region SESListVerifiedEmailAddresses
      var sesClient = new AmazonSimpleEmailServiceClient();

      var response = sesClient.ListVerifiedEmailAddresses();

      if (response.VerifiedEmailAddresses.Count > 0)
      {
        Console.WriteLine("Verified email addresses:");

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

      Console.ReadLine();
    }
        /// <summary>
        /// Lists email addresses capable of sending emails thru SES
        /// </summary>
        /// <returns></returns>
        public ListVerifiedEmailAddressesResult listVerifiedEmails()
        {
            ListVerifiedEmailAddressesResult ret = null;
            using (AmazonSimpleEmailServiceClient client = new AmazonSimpleEmailServiceClient(_accessKeyID, _secretAccessKeyID))
            {

                ListVerifiedEmailAddressesRequest request = new ListVerifiedEmailAddressesRequest();
                ListVerifiedEmailAddressesResponse response = client.ListVerifiedEmailAddresses(request);
                ret = response.ListVerifiedEmailAddressesResult;
            }

            return ret;
        }