Skip to content

replicant0wnz/ses-send

Repository files navigation

ses-send

Releases Latest commit LICENSE

Simple wrapper to send emails via AWS SES

Description

ses-send is a wrapper for the boto3 SES client. It allows the user to describe the email in a yaml configuration file instead of having to map it manually.

Requirements

Module requirements are boto3 and yaml. You must also have an SES identity already configured.

Installation

pip install ses-send

Configuration example

email:
  destination_address: [email protected]
  source_address: [email protected]
  subject: Automation notification 
  message: This is a notification
aws:
  region: us-east-1

Usage

from ses_send import SESSend

# You can omit the config_file keyword if you have config.yaml in the current path
x = SESSend(config_file="/path/to/config")
x.send_email()

Will return True if the send was successful.