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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ses-send-1.0.3.tar.gz.

File metadata

  • Download URL: ses-send-1.0.3.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for ses-send-1.0.3.tar.gz
Algorithm Hash digest
SHA256 783863b2adf1cb6e7d7ea710026045947f6be1e2d7c1194eec57c938dc59ed1b
MD5 177eb41fe8d9915f0c1fc59da7ca5b8c
BLAKE2b-256 f168cabb3e441c954c6acb03422468db22c411fad176154596a5f530509e2573

See more details on using hashes here.

File details

Details for the file ses_send-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ses_send-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for ses_send-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 14e59ee5abc033753d900f041a22370a77bca7209b45e8c7e9ed3ccae4bea430
MD5 712ea5010d7069ae9d4a8f610b0b712c
BLAKE2b-256 f12fff6edf2c47c41cf2de05db578a479cfdc1b2ad7076e5445b222e23300348

See more details on using hashes here.

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