Socket
Socket
Sign inDemoInstall

@aws-sdk/client-sesv2

Package Overview
Dependencies
Maintainers
5
Versions
401
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-sesv2

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


Version published
Weekly downloads
174K
decreased by-9.83%
Maintainers
5
Weekly downloads
 
Created

What is @aws-sdk/client-sesv2?

@aws-sdk/client-sesv2 is an AWS SDK for JavaScript package that allows you to interact with the Amazon Simple Email Service (SES) v2. It provides a range of functionalities for sending emails, managing email templates, handling email identities, and more.

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

Send Email

This feature allows you to send an email using Amazon SES. The code sample demonstrates how to create a client, construct a SendEmailCommand, and send an email.

{"import":"import { SESv2Client, SendEmailCommand } from '@aws-sdk/client-sesv2';","client":"const client = new SESv2Client({ region: 'us-east-1' });","command":"const command = new SendEmailCommand({\n  Destination: {\n    ToAddresses: ['recipient@example.com'],\n  },\n  Content: {\n    Simple: {\n      Subject: { Data: 'Test Email' },\n      Body: { Text: { Data: 'This is a test email.' } },\n    },\n  },\n  FromEmailAddress: 'sender@example.com',\n});","send":"const response = await client.send(command);\nconsole.log(response);"}

Create Email Template

This feature allows you to create an email template in Amazon SES. The code sample demonstrates how to create a client, construct a CreateEmailTemplateCommand, and create a template.

{"import":"import { SESv2Client, CreateEmailTemplateCommand } from '@aws-sdk/client-sesv2';","client":"const client = new SESv2Client({ region: 'us-east-1' });","command":"const command = new CreateEmailTemplateCommand({\n  TemplateName: 'MyTemplate',\n  TemplateContent: {\n    Subject: 'Hello, {{name}}',\n    Html: '<h1>Hello, {{name}}</h1>',\n    Text: 'Hello, {{name}}',\n  },\n});","send":"const response = await client.send(command);\nconsole.log(response);"}

List Email Identities

This feature allows you to list all email identities in your Amazon SES account. The code sample demonstrates how to create a client, construct a ListEmailIdentitiesCommand, and list email identities.

{"import":"import { SESv2Client, ListEmailIdentitiesCommand } from '@aws-sdk/client-sesv2';","client":"const client = new SESv2Client({ region: 'us-east-1' });","command":"const command = new ListEmailIdentitiesCommand({});","send":"const response = await client.send(command);\nconsole.log(response);"}

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

FAQs

Package last updated on 18 Sep 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