Index of every page on this site: llms.txt
All skills
amazon-ses avatar

/aws-ses

@58f234e
Run it yourself

Send, receive, and manage email at scale with Amazon Simple Email Service (SES). Use when building email sending, identity verification, deliverability monitoring, email validation, tenant management, or multi-tenant email platforms. Covers V2 API patterns, DKIM/SPF/DMARC authentication, configuration sets, suppression lists, bounce/complaint handling, and dedicated IP management.

Use this Skill: https://skilld.dev/gh/amazon-ses/skills/aws-ses

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesjava-examples.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Java Code Examples

Java examples for Amazon SES V2 API using AWS SDK for Java v2. Add software.amazon.awssdk:sesv2 to your Maven or Gradle dependencies.

Send Simple Email

import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.sesv2.SesV2Client;
import software.amazon.awssdk.services.sesv2.model.*;

public class SendEmail {
    public static void main(String[] args) {
        String sender = "sender@example.com";
        String recipient = "success@simulator.amazonses.com";

        SesV2Client client = SesV2Client.builder().region(Region.US_EAST_1).build();

        try {
            SendEmailResponse response = client.sendEmail(SendEmailRequest.builder()
                .fromEmailAddress(sender)
                .destination(Destination.builder().toAddresses(recipient).build())
                .content(EmailContent.builder()
                    .simple(Message.builder()
                        .subject(Content.builder().data("Hello from Amazon SES").build())
                        .body(Body.builder()
                            .text(Content.builder().data("Sent using SES V2 API.").build())
                            .build())
                        .build())
                    .build())
                .configurationSetName("my-config-set")
                .build());
            System.out.println("Message sent: " + response.messageId());
        } catch (SesV2Exception e) {
            System.err.println("Send failed: " + e.awsErrorDetails().errorCode() + " - " + e.getMessage());
        } finally {
            client.close();
        }
    }
}

Send Templated Email

import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.sesv2.SesV2Client;
import software.amazon.awssdk.services.sesv2.model.*;

SesV2Client client = SesV2Client.builder().region(Region.US_EAST_1).build();

SendEmailResponse response = client.sendEmail(SendEmailRequest.builder()
    .fromEmailAddress("sender@example.com")
    .destination(Destination.builder().toAddresses("success@simulator.amazonses.com").build())
    .content(EmailContent.builder()
        .template(Template.builder()
            .templateName("welcome-email")
            .templateData("{\"name\":\"Alice\",\"company\":\"Acme Corp\"}")
            .build())
        .build())
    .configurationSetName("my-config-set")
    .build());

Verify Domain Identity

CreateEmailIdentityResponse response = client.createEmailIdentity(
    CreateEmailIdentityRequest.builder()
        .emailIdentity("example.com")
        .dkimSigningAttributes(DkimSigningAttributes.builder()
            .domainSigningAttributesOrigin("AWS_SES")
            .build())
        .build());

response.dkimAttributes().tokens().forEach(token ->
    System.out.println(token + "._domainkey.example.com -> " + token + ".dkim.amazonses.com"));

Setup Configuration Set

client.createConfigurationSet(CreateConfigurationSetRequest.builder()
    .configurationSetName("my-config-set")
    .sendingOptions(SendingOptions.builder().sendingEnabled(true).build())
    .reputationOptions(ReputationOptions.builder().reputationMetricsEnabled(true).build())
    .suppressionOptions(SuppressionOptions.builder().suppressedReasons("BOUNCE", "COMPLAINT").build())
    .build());

Setup Tenant

client.createTenant(CreateTenantRequest.builder().tenantName("my-tenant").build());

client.createTenantResourceAssociation(CreateTenantResourceAssociationRequest.builder()
    .tenantName("my-tenant")
    .resourceArn("arn:aws:ses:us-east-1:123456789012:identity/example.com")
    .build());

client.createTenantResourceAssociation(CreateTenantResourceAssociationRequest.builder()
    .tenantName("my-tenant")
    .resourceArn("arn:aws:ses:us-east-1:123456789012:configuration-set/my-config-set")
    .build());

Validate Email Address

GetEmailAddressInsightsResponse response = client.getEmailAddressInsights(
    GetEmailAddressInsightsRequest.builder()
        .emailAddress("user@example.com")
        .build());

MailboxValidation validation = response.mailboxValidation();
System.out.println("Valid: " + validation.isValid().confidenceVerdict());

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5mo3 checks · Risk SAFE
  • Gen Agent Trust Hub5mo

    The skill provides a comprehensive set of instructions and examples for managing email operations via Amazon Simple Email Service (SES). It utilizes official AWS SDKs and follows industry standard security practices for credential management and email authentication.

  • Socket5mo

    No alerts

  • Snyk5mo

    Risk: LOW · No issues

Signed by skilld at 58f234e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago
metadata
{
  "author": "aws",
  "version": "1.0",
  "service": "ses"
}
Other metadata
compatibility
Requires AWS credentials (AWS Identity and Access Management (IAM) user, role, or environment variables) and an AWS account with Amazon SES access. SDK required - Python (boto3), Node.js (@aws-sdk/client-sesv2), or Java (software.amazon.awssdk:sesv2).

README badge

README badge for amazon-ses/skills/aws-ses