Basic implementaion of SMTP client using TCP communication with the SMTP server using the `socket` module.
Project description
Sandesh - Send Mail 🕊️
Basic implementaion of SMTP client using TCP communication with the SMTP server using the socket
module.
Usage
import sandesh_py as sandesh
auth = {"username": SMTP_USERNAME, "password": SMTP_PASSWORD},
options = {"notls": False}
client = sandesh.SMTPClient(
SMTP_HOST,
SMTP_PORT,
auth,
options
t
client.connect()
mail = smtp.Mail(
{
"mailTo": "recipient@example.com",
"mailFrom": "sender@example.com",
"subject": "Email Subject",
"body": "Email Body",
"attachments": [
# attachment files MUST be under 20 MB
"path/to/attachment",
"path/to/attachment"
]
}
)
client.sendMail(mail)
client.close()
ToDo List
- Support authentication using username and password
- Implement SSL/TLS encryption for secure communication
- Add support for MIME to handle attachments and alternative content types
- Support Oath and API authentication
- Connection Pooling and Asynchronous Delivery
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
sandesh.py-0.0.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for sandesh.py-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94721aeda2efde823b0e103e535f4be50829c9eb507c2ed6e95dea944184d29b |
|
MD5 | d5690787f2b42d4960ecceca0a3abe04 |
|
BLAKE2b-256 | 962abd749c8eb666dc4938e30a4f90bc1e96687d16ab5076650464d41b93f84a |