Metadata-Version: 2.1
Name: sandesh.py
Version: 0.0.1
Summary: Basic implementaion of SMTP client using TCP communication with the SMTP server using the `socket` module.
Author: Sandesh Khadaka
Author-email: Sandesh Khadka <mail@khadkasandesh.com.np>
Project-URL: Homepage, https://github.com/sandeshkhadka/sandesh
Project-URL: Issues, https://github.com/sandeshkhadka/sandesh/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# Sandesh - Send Mail 🕊️

Basic implementaion of SMTP client using TCP communication with the SMTP server using the `socket` module.

## Usage

```python

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

- [x] Support authentication using username and password
- [x] Implement SSL/TLS encryption for secure communication
- [x] Add support for MIME to handle attachments and alternative content types
- [ ] Support Oath and API authentication
- [ ] Connection Pooling and Asynchronous Delivery
