Skip to main content

Simple wrapper to send emails via AWS SES

Project description

ses-send

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: youremail@gmail.com
  source_address: automation@yourdomain.com
  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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ses-send-1.0.3.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

ses_send-1.0.3-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page