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.2.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ses-send-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a42c2770a6f5303e45c569eac0736bb76b41e003e019be4f28b7daea9f2a92c4
MD5 50a4a58314ff6c0dc51dd1ac626f889b
BLAKE2b-256 a8d11d04a957e4f432a5218b9809d52fec5e78c2cc8e28bfca86e2253fb75fda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ses_send-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b9f2d753f4088a8911a78d98c1c9bec9cfcd2be9d0f6393e1b5232f9fa03d39e
MD5 9d28dc65e2515910d1d588c32404e850
BLAKE2b-256 6f2c833f72d02a99faedb4b66129ca71f07576164e376ffa267568a80514fe32

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