emailcli

command module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

CircleCI

Golang Emailcli

Because surprisingly, everything else out there just barely fails to be useful to me.

This utility does exactly one thing: wrap a Golang email library in a command line interface.

Install on Linux (https://github.com/jniltinho/emailcli/releases)

wget https://github.com/jniltinho/emailcli/releases/download/v0.0.4/email-cli_linux
mv email-cli_linux /usr/local/bin/email-cli
chmod +x /usr/local/bin/email-cli

Build

git clone https://github.com/jniltinho/emailcli.git
cd emailcli
make

Usage

email-cli --username test@gmail.com --password somepassword \
    --host smtp.gmail.com --port 587 \
    --subject "Test mail" \
    --body "Test Body" test@gmail.com

For security, it also supports reading settings from environment variables:

export EMAIL_PASSWORD=somepassword
email-cli --username test@gmail.com \
    --host smtp.gmail.com --port 587 \
    --subject "Test mail" \
    --body "Test Body" test@gmail.com

All command line variables can be used as environment variables by appending EMAIL_ to the parameter name and capitalizing.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址