Code Monkey home page Code Monkey logo

api-lambda-send-email-ses's Introduction

Api Gateway -> Lambda (Send Email) -> SES (Simple Email Service)

Description

This is a serverless component consisting of:

  • an Api Gateway with a POST /send endpoint, that requires three parameters:

    • toEmails, Array of strings, that represent all the emails you want to send an email to,
    • subject, a string representing the subject of the email
    • message, a string representing the message of the email, can be either HTML or regular text It also accepts two optional ones: ccEmails and replyToEmails, both of Array of strings type.
  • a Lambda that sends an email to one or more specified email addresses. Also, depending if the message is in a Text or HTML format, it will send it in either of those formats. The toEmails,ccEmails, and replyToEmails parameters must be of Array type.

It's a Nuts & Bolts application component for AWS Serverless Application Repository.

Deployment Parameters

This component has two CloudFormation deployment parameters:

  • FromEmail, a required parameter, represents the email sender. Must be a SES verified email. If you attempt to send email using a non-verified address or domain, the operation results in an "Email address not verified" error.
  • CorsOrigin, an optional parameter, where you can restrict access to only specified domains.

Latest Release - 1.1.0

  • Upgrade to Node.js 12.x LTS

Roadmap - Upcoming changes

Here are the upcoming changes that I'll add to this serverless component:

  • ESLint
  • Tests

api-lambda-send-email-ses's People

Contributors

simalexan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.