Skip to main content

Simple lib to send mail

Project description

Justsendmail

PyPI PyPI - Downloads PyPI - License Python Lint

Simple CLI tool to send mail using Python 3+

Installation

pip install justsendmail

# or with pipx:
pipx install justsendmail

and there's this too 💑:

nix run 'git+https://github.com/pschmitt/nixos-config#justsendmail' -- --help

Usage

$ justsendmail --help
Usage: justsendmail.py [-h] [-N] [-S SMTP] [-P PORT] [--ssl] [--starttls]
                       [--insecure] -s SENDER [-u USERNAME] [-p PASSWORD] -r
                       RECIPIENT [-v] [-a ATTACHMENT]
                       SUBJECT MESSAGE

Process args

Positional Arguments:
  SUBJECT
  MESSAGE

Options:
  -h, --help            show this help message and exit
  -N, --no-autodiscovery
                        Disable autodiscovery of SMTP settings
  -S, --smtp SMTP       SMTP Server
  -P, --port PORT       SMTP Server Port
  --ssl                 Use SSL/TLS
  --starttls            Use STARTTLS
  --insecure            Disable SSL/TLS certificate validation
  -s, --sender SENDER   Email of the sender
  -u, --username USERNAME
                        Username of the account (default: sender email)
  -p, --password PASSWORD
                        Password of the account
  -r, --recipient RECIPIENT
                        Recipient of the mail
  -v, --verbose         Verbose output
  -a, --attachment ATTACHMENT
                        Attachment

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

justsendmail-4.2.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

justsendmail-4.2-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

Details for the file justsendmail-4.2.tar.gz.

File metadata

  • Download URL: justsendmail-4.2.tar.gz
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for justsendmail-4.2.tar.gz
Algorithm Hash digest
SHA256 b95917a2f15ff34018db1599bd621940a0f09e685422beb4a6c6be07e8b1f8b8
MD5 c26f610881a163abe97f76dd4f2f10ca
BLAKE2b-256 0d299ea5197f3d602982a15f9a967f41d4a0328a33b383c766e407248c9765e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for justsendmail-4.2.tar.gz:

Publisher: pypi.yaml on pschmitt/justsendmail

Attestations:

File details

Details for the file justsendmail-4.2-py3-none-any.whl.

File metadata

  • Download URL: justsendmail-4.2-py3-none-any.whl
  • Upload date:
  • Size: 29.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for justsendmail-4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 98a5578d8d5f992558b11919666086bd8307a25089803408febdeca0cbb47bfd
MD5 f71dc5cecd4af4081b83264fe5673797
BLAKE2b-256 0e07e05140f21e76c426404efa0802877f708dff95e71a672154e87da69095e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for justsendmail-4.2-py3-none-any.whl:

Publisher: pypi.yaml on pschmitt/justsendmail

Attestations:

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