Skip to main content

An easy-to-use library for sending emails synchronously and asynchronously, with support for templates and attachments.

Project description

Py Postman Suite

📚 doc py-postman

An easy-to-use library for sending emails...

Py Postman Suite

An easy-to-use library for sending emails synchronously and asynchronously, with support for templates, attachments, and a command-line interface.

Installation

pip install py-postman-lib

Basic Usage

As a Library

from py_postman import Postman

mailer = Postman(
    email="your_sender@gmail.com",
    password="your_app_password"
)

success = mailer.send(
    to="recipient@example.com",
    subject="Hello from Py Postman!",
    text="This is a test email."
)

if success:
    print("Email sent successfully!")

From the Command Line

pypostman \
    --email "your_sender@gmail.com" \
    --password "your_app_password" \
    --to "recipient@example.com" \
    --subject "CLI Test" \
    --text "This email was sent from the command line."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_postman_lib-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file py_postman_lib-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_postman_lib-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.1

File hashes

Hashes for py_postman_lib-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b0f686a370141b4e0f65664d16117b937ba56be2bccf46960272769eb4b3630
MD5 4cc835da9ba498021b80ed0ce4896969
BLAKE2b-256 8e47ed6d6e91071dab057e52d5d2604d80283e17905d50567cdd1b526513a8d8

See more details on using hashes here.

Supported by

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