All Projects → lakshmantgld → aws-ses-serverless-example

lakshmantgld / aws-ses-serverless-example

Licence: other
AWS SES example in NodeJS using lambda

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to aws-ses-serverless-example

Play Scala Starter Example
Play Scala Starter Template (ideal for new users!)
Stars: ✭ 238 (+217.33%)
Mutual labels:  example
ses-email-client
Simple, serverless client for AWS SES. With this, you can send/read emails received by SES into S3 without purchasing AWS Workmail. If you only use SES for email marketing, you can also see and preview your SES templates in the browser
Stars: ✭ 21 (-72%)
Mutual labels:  aws-ses
go-learning
My Golang training material for testing smaller Go concepts and ideas.
Stars: ✭ 27 (-64%)
Mutual labels:  example
Suddi.github.io
A static single-page application resume-builder developed using React.js and JSON Resume schema (https://suddi.io/)
Stars: ✭ 246 (+228%)
Mutual labels:  example
Webauthndemo
An example Java Relying Party implementation of the WebAuthn specification
Stars: ✭ 251 (+234.67%)
Mutual labels:  example
send-email-lambda
Simple email sender running on Lambda
Stars: ✭ 70 (-6.67%)
Mutual labels:  aws-ses
Wordpress Plugin Boilerplate Tutorial
Tutorials and Examples for WordPress Plugin Boilerplate, a foundation for WordPress Plugin Development.
Stars: ✭ 232 (+209.33%)
Mutual labels:  example
spring-cloud-aws
All development has moved to https://github.com/awspring/spring-cloud-aws Integration for Amazon Web Services APIs with Spring
Stars: ✭ 587 (+682.67%)
Mutual labels:  aws-ses
Passcode
🔑 Passcode for iOS Rxswift, ReactorKit and IGListKit example
Stars: ✭ 254 (+238.67%)
Mutual labels:  example
line-example-bot-tiny-php
Line Bot 基礎範例程式碼教學 (PHP) - 輕量版 LINEBotTiny.php
Stars: ✭ 58 (-22.67%)
Mutual labels:  example
Lv examples
Examples, tutorials and applications for the LVGL embedded GUI library
Stars: ✭ 246 (+228%)
Mutual labels:  example
Firetodo
Simple Todo Application using SwiftUI / Firebase / Redux.
Stars: ✭ 250 (+233.33%)
Mutual labels:  example
invoiceless
Serverless backend for sending simple recurring invoices
Stars: ✭ 44 (-41.33%)
Mutual labels:  aws-ses
Snaphelperexample
SnapHelper Example for Android Application
Stars: ✭ 245 (+226.67%)
Mutual labels:  example
godot entt example
A simple example on how to use entt (https://github.com/skypjack/entt) within godot
Stars: ✭ 36 (-52%)
Mutual labels:  example
Arkit2.0 Prototype
After Apple’s introduction of ARKit 2, we have been consistently working behind to create shared-AR experiences. Our goal is to improve the utility of mobile using AR experiences.
Stars: ✭ 236 (+214.67%)
Mutual labels:  example
lambda-mailer
Simple module for receiving an email from a contact form on your website.
Stars: ✭ 83 (+10.67%)
Mutual labels:  aws-ses
tetris-demo
A Tetris example written in Rust using Piston in under 500 lines of code
Stars: ✭ 106 (+41.33%)
Mutual labels:  example
lifequote
React port of a life insurance quick quoting application
Stars: ✭ 36 (-52%)
Mutual labels:  example
ses-email-forwarding
AWS CDK constructs to receive emails with SES and forward them to any other email address.
Stars: ✭ 17 (-77.33%)
Mutual labels:  aws-ses

AWS-SES-Serverless-Example

serverless

This repo is an example of sending email using SES on Lambda invocation. It uses the AWS SES nodeJS SDK to send emails. Various parameters for sending email such as sourceEmail address, destination email address can be specified as body parameter for the Deployed APIGateway URL.

Technical Architecture:

Architecture diagram

Notes on AWS SES

  • If you are in SES sandbox, you have to verify both sender and receiver email addresses. But, If you have migrated out of SES sandbox, sender mail alone must be verified.
  • Best practice is to use IAM roles compared to hardcoding AWS credentials in application. For the IAM roles related to SES, take a look at the sesIAMRole branch.

Instructions to deploy:

  • Clone this repo:
git clone https://github.com/lakshmantgld/aws-ses-serverless-example.git
  • Install the dependencies:
cd aws-ses-serverless-example && yarn install or npm install
  • Set the AWS credentials as environment variables like described below:
AWS_SECRET_ACCESS_KEY=<secret-key>
AWS_REGION=<region>
AWS_ACCESS_KEY_ID=<access-key>

The above credentials are required for deploying the Lambda and APIGateway using serverless

  • Rename the config.copy.json to config.json.

  • Fill the above AWS credentials to config.json. As SES uses this credentials to send mail. Presently, SES supports only in US East, US West & EU(Ireland). So, If your region is not supported by SES, make sure you select the above regions and add it to the config.json.

  • Finally, deploy the app by running sls deploy -v.

  • Once the deployment completes, you can send mail by invoking the URL with the following parameters.

{
	"bccEmailAddresses": [],
	"ccEmailAddresses": [],
	"toEmailAddresses": ["****@gmail.com"],
	"bodyData": "Hey test message buddy!! From AWS SES",
	"bodyCharset": "UTF-8",
	"subjectdata": "AWS SES",
	"subjectCharset": "UTF-8",
	"sourceEmail": "****@gmail.com",
	"replyToAddresses": ["****@gmail.com"]
}

Here is the picture of similar invocation made in postman: Post parameters

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].