Mail CLI
Encapsulation for email senders, include mailgun service and SMTP mailer.
Install
To install mail helper, run this command in your terminal:
$ pip install -U git+https://github.com/debugtalk/mail-cli.git#egg=mail-cli
Usage
$ python mailcli.py -h
usage: mailcli.py [-h] [-V] [-u MAILGUN_SMTP_USERNAME]
[-p MAILGUN_SMTP_PASSWORD] [--mail-sender MAIL_SENDER]
[--mail-recepients [MAIL_RECEPIENTS [MAIL_RECEPIENTS ...]]]
[--mail-subject MAIL_SUBJECT] [--mail-content MAIL_CONTENT]
[--mail-content-path MAIL_CONTENT_PATH]
Mail-CLI, send mail with mailgun service.
optional arguments:
-h, --help show this help message and exit
-V, --version show version
-u MAILGUN_SMTP_USERNAME, --mailgun-smtp-username MAILGUN_SMTP_USERNAME
Specify mailgun smtp username.
-p MAILGUN_SMTP_PASSWORD, --mailgun-smtp-password MAILGUN_SMTP_PASSWORD
Specify mailgun smtp password.
--mail-sender MAIL_SENDER
Specify email sender.
--mail-recepients [MAIL_RECEPIENTS [MAIL_RECEPIENTS ...]]
Specify email recepients.
--mail-subject MAIL_SUBJECT
Specify email subject.
--mail-content MAIL_CONTENT
Specify email content.
--mail-content-path MAIL_CONTENT_PATH
Load file content as mail content.
Examples
send mail with content
$ python mailcli.py \
-u "user@mail.com" \
-p "pwd123" \
--mail-sender "sender@mail.com" \
--mail-recepients test1@mail.com test2@mail.com \
--mail-subject subject-test \
--mail-content hello-world
send mail with file content
$ python mailcli.py \
-u "user@mail.com" \
-p "pwd123" \
--mail-sender "sender@mail.com" \
--mail-recepients test1@mail.com test2@mail.com \
--mail-subject subject-test \
--mail-content-path 1534006836.html
Metadata
Release files for mailcli 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mailcli-0.3.1.tar.gz | 3.5 kB | Without provenance | Details for mailcli-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mailcli-0.3.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for mailcli-0.3.1-py2.py3-none-any.whl |
Total release size: 7.2 kB
Release files / mailcli-0.3.1.tar.gz
| Download URL | mailcli-0.3.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59364f24d1f690935a0f577dc1d2029b60825dab40b5cd30aea2c92a4bd1c893
|
|
BLAKE2b-256 checksum How to use checksums |
7292af2a819cdf28c8f8949437c799fcd6a86bb67da78949a7add3b9df3a9c2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5+
|
Release files / mailcli-0.3.1-py2.py3-none-any.whl
| Download URL | mailcli-0.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f410080632191af3965987c486d815eb1e826c1624d5072618a82d8eb7f8a631
|
|
BLAKE2b-256 checksum How to use checksums |
7192761a180383f1fda9b9f0155632e71c9b417650ace425cde5585ca506cbf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5+
|
Security for mailcli 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.