UA-Email-Client
Provides easy interface for sending emails through Amazons Simple Email Service.
Motivation
To make a python API that could obfuscate the details of sending emails using AWS SES service.
Code Example
from ua_email_client import ua_email_client
client = ua_email_client.EmailClient(email)
# The template name given should be relative name to a file.
client.add_template("success.html")
# Destinations
client.send_email(destinations, "success.html", subject, body)
# No Template
client.send_email(destinations, None, subject, body, use_template=False)
Installation
pip install --user ua-email-client
Tests
NOTE: Running this test suite WILL send emails. Please specify an email which can receive emails. The emails can all be ignored once received.
To run the tests you will need to create a json configuration with some user-specific values. This file will be ua_email_client/tests/email_creds.json. It will be populated with:
{
"email": "...",
"default_recipient": "...",
"secondary_recipient": "..."
}
Where "email" is the sending email, "default_recipient" is the main email you want to receive emails, and "secondary_recipient" is a second email to test sending emails to multiple recipients at once.
Once this file is created, just run:
cd ua_email_client/tests
nosetests test_ua_email_client.py
Credits
RyanJohannesBland EtienneThompson
License
MIT
Metadata
Release files for ua-email-client 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ua_email_client-0.1.9.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ua_email_client-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.4 kB
Release files / ua_email_client-0.1.9.tar.gz
| Download URL | ua_email_client-0.1.9.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
518336b22334238e8454864489bcdc73bf2e8d9afb431761b1e9089bfcf2a4a6
|
|
BLAKE2b-256 checksum How to use checksums |
beff36687611586ba6fd12f19a60df4653034f5fdd5fab516b1acb67a54758d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.5 Linux/6.2.0-37-generic
|
Release files / ua_email_client-0.1.9-py3-none-any.whl
| Download URL | ua_email_client-0.1.9-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a324bc56f7d1f9fb95ffb03534d1fa6baeff9648d849cbe42aee6c6e6ef5cc3
|
|
BLAKE2b-256 checksum How to use checksums |
935fb52a29c971b325773bc1379c2a6930f7b8aad4f00aa8d3b1282b07669078
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.5 Linux/6.2.0-37-generic
|