Skip to content

A serverless email marketing system built using AWS services. It enables automated email campaigns using Amazon S3, SES, Lambda, and EventBridge.

Notifications You must be signed in to change notification settings

DSCmatter/AWS-Serverless-Email-Marketing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS-Serverless-Email-Marketing

A serverless email marketing system built using AWS services. It enables automated email campaigns using Amazon S3, SES, Lambda, and EventBridge.

Features

  • Store email templates & contacts in Amazon S3.
  • Send emails using Amazon Simple Email Service (SES).
  • Merge templates with contacts and trigger email sending via AWS Lambda.
  • Schedule automated emails using Amazon EventBridge.

AWS Services Used

  • Amazon S3 – Stores email templates and contact lists.
  • Amazon SES – Sends emails.
  • AWS Lambda – Processes and merges email templates with contact data.
  • Amazon EventBridge – Triggers scheduled email campaigns.
  • AWS IAM – Manages permissions and security.

Architecture Overview

AWS Architecture

  1. Upload email templates (HTML) and contact lists (CSV) to an S3 bucket.
  2. A Lambda function reads the email template and contacts.
  3. The function sends personalized emails using SES.
  4. EventBridge triggers the Lambda function on a schedule.

🏗️ Setup Instructions

Configure Amazon S3

  • Create an S3 bucket.
  • Upload email templates (HTML).
  • Upload contact lists (CSV).

Set Up Amazon SES

  • Verify an email address and domain.
  • Move SES out of the sandbox (optional for production).

Create AWS Lambda Function

  • A Python function to read S3 files and send emails via SES.
  • Ensure Lambda has S3 read and SES send permissions.

Configure Amazon EventBridge

  • Create a rule to invoke Lambda on a schedule.

Testing & Debugging

  • Test SES by sending emails manually.
  • Validate Lambda permissions for S3 and SES.
  • Monitor logs using AWS CloudWatch.

Example:

email


Important

⚠️ Remember to delete unused AWS resources to avoid unnecessary charges!

About

A serverless email marketing system built using AWS services. It enables automated email campaigns using Amazon S3, SES, Lambda, and EventBridge.

Topics

Resources

Stars

Watchers

Forks