Simple wrapper to send emails via AWS SES
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.
Module requirements are boto3
and yaml
. You must also have an SES identity already configured.
pip install ses-send
email:
destination_address: [email protected]
source_address: [email protected]
subject: Automation notification
message: This is a notification
aws:
region: us-east-1
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.