Skip to content

yashpapa6969/lambda-mailing-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lambda Mailing Service

Overview

Lambda Mailing Service is an AWS Lambda function designed to send emails using Amazon SES (Simple Email Service). This service is triggered by HTTP POST requests and can send emails to specified recipients with a custom subject and body.

Features

  • Sends emails using AWS SES.
  • Handles HTTP POST requests via API Gateway.
  • Customizable subject, body, and recipient list.

Setup

  1. AWS Configuration:

    • Ensure that SES is configured in the ap-south-1 region.
    • Verify the sender email address ([email protected]) in SES.
  2. IAM Role Permissions:

    • The Lambda function must have the ses:SendEmail permission.

    • Ensure the IAM role associated with the Lambda function has the following policy:

      {
          "Effect": "Allow",
          "Action": "ses:SendEmail",
          "Resource": "*"
      }
  3. Deployment:

    • Use the Serverless Framework to deploy the service:
      serverless deploy

Usage

  • Endpoint: /send-email

  • Method: POST

  • Request Body:

    {
        "subject": "Your Subject",
        "body": "Your email body content",
        "toAddresses": ["[email protected]"]
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published