Skip to main content

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


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)

Uploaded Source

Built Distribution

sandesh.py-0.0.1-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page