an auto mailer to send emails in batch for you
Project description
ntuee-mailer
Installation
$ pip install ntuee-mailer
Usage:
$ ntuee-mailer [OPTIONS] COMMAND [ARGS]...
Options:
--install-completion
: Install completion for the current shell.--show-completion
: Show completion for the current shell, to copy it or customize the installation.--help
: Show this message and exit.
Commands:
check
: check wether a directory is a valid letterconfig
: configure the auto mailer a valid config filenew
: create a new letter from templatesend
: send emails to a list of recipients as
ntuee-mailer check
check wether a directory is a valid letter
a letter folder should be structured as follows:
letter
├── attachments │ ├── ... │ └── ... ├── config.yml ├── content.html └── recipients.csv
Usage:
$ ntuee-mailer check [OPTIONS] LETTER_PATH
Arguments:
LETTER_PATH
: Path to letter directory [required]
Options:
--help
: Show this message and exit.
ntuee-mailer config
configure the auto mailer
a valid config file should have the following structure:
[smtp] host=smtps.ntu.edu.tw port=465 timeout=5
[pop3] host=msa.ntu.edu.tw port=995 timeout=5
[account] name=John Doe
Usage:
$ ntuee-mailer config [OPTIONS]
Options:
-f, --file TEXT
: Path to new config file whose content will be copied to config.ini-r, --reset
: Reset config.ini to default [default: False]-s, --show
: Show config.ini [default: False]--help
: Show this message and exit.
ntuee-mailer new
create a new letter from template
Usage:
$ ntuee-mailer new [OPTIONS] LETTER_NAME
Arguments:
LETTER_NAME
: Name of letter [required]
Options:
--help
: Show this message and exit.
ntuee-mailer send
send emails to a list of recipients as configured in your letter
Usage:
$ ntuee-mailer send [OPTIONS] [LETTER_PATH]
Arguments:
[LETTER_PATH]
: Path to letter
Options:
-t, --test
: Test mode: send mail to yourself [default: False]-c, --config FILE
: Path to config.ini [default: /home/madmax/.config/ntuee_mailer-mailer/config.ini]-q, --quiet
: Quiet mode: less output [default: False]-d, --debug INTEGER RANGE
: Debug level [default: 0]--help
: Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ntuee_mailer-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dca5d5a198ac6fa31af8a5fe4846a407faaee6f18c18bc59417b6c9361cd1e9a |
|
MD5 | d326c30d8ac56360e1ef71c9176ad04d |
|
BLAKE2b-256 | 9db3b59acb1429fc6114150a4e53beefb23ef9f6949afdb7388afcf84ee3bb75 |