public static void SESGetIdentityVerificationAttributes()
        {
            #region SESGetIdentityVerificationAttributes
            var sesClient = new AmazonSimpleEmailServiceClient();

            var idsResponse = sesClient.ListIdentities();

            if (idsResponse.Identities.Count > 0)
            {
                var request = new GetIdentityVerificationAttributesRequest
                {
                    Identities = idsResponse.Identities
                };

                var response = sesClient.GetIdentityVerificationAttributes(request);

                foreach (var attr in response.VerificationAttributes)
                {
                    Console.WriteLine(attr.Key);
                    Console.WriteLine("  Verification Status: " +
                                      attr.Value.VerificationStatus.Value);
                    Console.WriteLine("  Verification Token: " +
                                      attr.Value.VerificationToken);
                    Console.WriteLine();
                }
            }
            ;
            #endregion

            Console.ReadLine();
        }
Beispiel #2
0
        //verifica o status do e-mail na aws
        private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                using (var client = new AmazonSimpleEmailServiceClient(awsAccessKeyId, awsSecretAccessKey, RegionEndpoint.SAEast1))
                {
                    var response = client.GetIdentityVerificationAttributes(new GetIdentityVerificationAttributesRequest
                    {
                        Identities = new List <string> {
                            textBox1.Text
                        }
                    });

                    Dictionary <string, IdentityVerificationAttributes> verificationAttributes = response.VerificationAttributes;

                    foreach (var i in verificationAttributes)
                    {
                        label1.Text    = "";
                        label1.Text    = "Status do E-mail: " + i.Value.VerificationStatus;
                        label1.Visible = true;
                    }
                }
            }
            catch (Exception err)
            {
                MessageBox.Show("Ocorreu um problema, verifique!: " + err.Message);
            }
        }
Beispiel #3
0
        public void SimpleEmailServiceGetIdentityVerificationAttributes()
        {
            #region getidentityverificationattributes-1469124205897

            var client   = new AmazonSimpleEmailServiceClient();
            var response = client.GetIdentityVerificationAttributes(new GetIdentityVerificationAttributesRequest
            {
                Identities = new List <string> {
                    "example.com"
                }
            });

            Dictionary <string, IdentityVerificationAttributes> verificationAttributes = response.VerificationAttributes;

            #endregion
        }