A library to send messages with the Postal server API.
Project description
Postal Sender Library
This is a library to send messages with the Postal server API.
Installation
pip install postalsend
Usage
import postalsend
Login
postalsend.login(server, api_key)
Send a message
postalsend.send(from_address, to_address, subject, text)
Setup push notifications
postalsend.push_setup(to_address, from_address)
Send a push notification
postalsend.push_send(subject, text)
Example
python examples/send-mail.py
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
postalsend-0.1.0.tar.gz
(5.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file postalsend-0.1.0.tar.gz.
File metadata
- Download URL: postalsend-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fd894063ea1a0f18e7bf21e099845a8450fb7ac7d4d329998ee9cf0fb77af4f
|
|
| MD5 |
d6bad175c0a1477da64c10050ac77355
|
|
| BLAKE2b-256 |
0aa9ab923cd0084e982457ffafd6268997e0ac8edc31724fa822fd389452e919
|
File details
Details for the file postalsend-0.1.0-py3-none-any.whl.
File metadata
- Download URL: postalsend-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
222e3f30c809c5d2a60b6a57ab5d0039559e564e4dd53a520d264636d76ce52a
|
|
| MD5 |
809f8e225dab98f33336b943b2e632f9
|
|
| BLAKE2b-256 |
7498899564f31e104f96259bfe0868dfeace6190ccee99d959dae2e4e3a1d1dd
|