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.0.tar.gz (43.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: justsendmail-4.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5859090c673cb21dd0a93494dc849439e45710b74017034b0a3fd74630f56da7
MD5 998b72de7f64060438265decc48502a4
BLAKE2b-256 eab186133e47729293abfc75a4441829733f160542b92f875b3340b9600ada9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: justsendmail-4.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fae81d3e73031bc70bbe0fee55e10a8d7a5a4b3f23e53d44ab245cbc31a6223
MD5 d92155a9aaf102515759a95260b3b454
BLAKE2b-256 080c77c6f934138edd4d68a6ceac607f6b451e3c6a15822e7e013c82fcfa1e4f

See more details on using hashes here.

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