Prompt

Amazon SES SDK setup for Node

Technology / API Platforms1 observationLast seen Oct 4, 2026

Latest observation

Oct 4, 2026OpenAI APIWeb search: off

Here’s a simple setup for Amazon SES in Node.js using the AWS SDK.

1) Install the SDK

For AWS SDK v3:

npm install @aws-sdk/client-ses

2) Configure AWS credentials

Use one of these:

  • AWS CLI config: aws configure
  • Environment variables:
    AWS_ACCESS_KEY_ID=your_key
    AWS_SECRET_ACCESS_KEY=your_secret
    AWS_REGION=us-east-1
    
  • IAM role if running on AWS infrastructure

3) Send an email with SES

const { SESClient, SendEmailCommand } = require("@aws-sdk/client-ses");

const ses = new SESClient({
  region: "us-east-1",
  // credentials optional if already set in env / IAM role / shared config
});

async function sendEmail() {
  const params = {
    Source: "verified-sender@example.com",
    Destination: {
      ToAddresses: ["recipient@example.com"],
    },
    Message: {
      Subject: {
        Data: "Test email from SES",
        Charset: "UTF-8",
      },
      Body: {
        Text: {
          Data: "Hello! This is a test email sent via Amazon SES.",
          Charset: "UTF-8",
        },
      },
    },
  };

  try {
    const result = await ses.send(new SendEmailCommand(params));
    console.log("Email sent:", result.MessageId);
  } catch (err) {
    console.error("Error sending email:", err);
  }
}

sendEmail();

4) Important SES requirements

  • Your sender email/domain must be verified in SES.
  • If your SES account is in the sandbox, you can only send to verified recipients.
  • Make sure the region matches where your SES identity is verified.

5) If you want HTML email

Replace the Body section:

Body: {
  Html: {
    Data: "<h1>Hello</h1><p>This is a test email.</p>",
    Charset: "UTF-8",
  },
  Text: {
    Data: "Hello! This is a test email.",
    Charset: "UTF-8",
  },
}

If you want, I can also give you:

  • a nodemailer + SES setup
  • a TypeScript version
  • a working Express example
  • or the AWS SDK v2 version

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as Circuit. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.