Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-ses

Package Overview
Dependencies
Maintainers
5
Versions
411
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-ses

AWS SDK for JavaScript Ses Client for Node.js, Browser and React Native

  • 3.686.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
657K
decreased by-16.11%
Maintainers
5
Weekly downloads
 
Created

What is @aws-sdk/client-ses?

@aws-sdk/client-ses is an AWS SDK for JavaScript package that allows you to interact with the Amazon Simple Email Service (SES). SES is a cloud-based email sending service designed to help digital marketers and application developers send marketing, notification, and transactional emails. The package provides a variety of functionalities to manage email sending, email receiving, and email analytics.

What are @aws-sdk/client-ses's main functionalities?

Send Email

This feature allows you to send an email using Amazon SES. The code sample demonstrates how to configure the SES client, set up the email parameters, and send the email.

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

const client = new SESClient({ region: 'us-east-1' });

const params = {
  Destination: {
    ToAddresses: ['recipient@example.com'],
  },
  Message: {
    Body: {
      Text: { Data: 'Hello, this is a test email.' },
    },
    Subject: { Data: 'Test Email' },
  },
  Source: 'sender@example.com',
};

const run = async () => {
  try {
    const data = await client.send(new SendEmailCommand(params));
    console.log('Email sent successfully:', data);
  } catch (err) {
    console.error('Error sending email:', err);
  }
};

run();

Verify Email Identity

This feature allows you to verify an email address with Amazon SES. The code sample demonstrates how to initiate the email verification process.

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

const client = new SESClient({ region: 'us-east-1' });

const params = {
  EmailAddress: 'user@example.com',
};

const run = async () => {
  try {
    const data = await client.send(new VerifyEmailIdentityCommand(params));
    console.log('Email identity verification initiated:', data);
  } catch (err) {
    console.error('Error verifying email identity:', err);
  }
};

run();

List Verified Email Addresses

This feature allows you to list all email addresses that have been verified with Amazon SES. The code sample demonstrates how to retrieve and display the list of verified email addresses.

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

const client = new SESClient({ region: 'us-east-1' });

const run = async () => {
  try {
    const data = await client.send(new ListVerifiedEmailAddressesCommand({}));
    console.log('Verified email addresses:', data.VerifiedEmailAddresses);
  } catch (err) {
    console.error('Error listing verified email addresses:', err);
  }
};

run();

Other packages similar to @aws-sdk/client-ses

FAQs

Package last updated on 06 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc