Socket
Socket
Sign inDemoInstall

aws-ses-local

Package Overview
Dependencies
6
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-ses-local

Local Amazon Simple Email Service Server written in Node


Version published
Maintainers
1
Install size
7.50 MB
Created

Readme

Source

aws-ses-local

Build Status Coverage Status Known Vulnerabilities scrutinizer npm package repo license

Creates local Amazon Simple Email Service Server for consuming requests sent by the API

Features

  • Stores html / text email and headers to output directory for viewing / testing
  • Returns file url of html email in place of MessageId

Supported Functions

Installation

npm install aws-ses-local -g

Running the server

aws-ses-local

CLI Options

OptionShort OptionDefaultDescription
--outputDir-o./outputSpecify output directory
--port-p9001Specify port for server to run on
--clean-cnoneClean output directory (delete all contents)

Using the server

First, you need to install the AWS SDK then point it to the local server by specifying the endpoint

import AWS from 'aws-sdk'
const ses = new AWS.SES({ region: 'us-east-1', endpoint: 'http://localhost:9001' })

That's it! Now run sendEmail() with required params for eg.

ses.sendEmail({
  Destination: { /* required */
    BccAddresses: [
      'STRING_VALUE'
    ],
    CcAddresses: [
      'STRING_VALUE'
    ],
    ToAddresses: [
      'STRING_VALUE'
    ]
  },
  Message: { /* required */
    Body: { /* required */
      Html: {
        Data: 'STRING_VALUE' /* required */
      },
      Text: {
        Data: 'STRING_VALUE' /* required */
      }
    },
    Subject: { /* required */
      Data: 'STRING_VALUE' /* required */
    }
  },
  Source: 'STRING_VALUE', /* required */
  ReplyToAddresses: [
    'STRING_VALUE'
  ]
})

Keywords

FAQs

Last updated on 20 Nov 2017

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc