UnimailClient: A Command-Line Tool for Efficient Email Management
UnimailClient is a command-line tool designed to facilitate email sending through Unimail's API. It offers developers and system administrators an easy-to-use solution for integrating email functionality into their workflows.
Key Features:
Reads the API key from the UNIMAIL_KEY environment variable or allows overriding with -k/--key.
Supports plain text and HTML content.
Manages multiple recipients via -r, CC, and BCC.
Enables attachments using --file, supporting multiple files by repeating the flag.
Provides version checking and update capabilities.
Offers help options for usage guidance.
Audience & Benefits:
Ideal for developers and system administrators seeking a seamless way to integrate email sending into their automation scripts or applications. UnimailClient streamlines email management without requiring a graphical interface, enhancing efficiency in workflow integration.
Installable via winget, UnimailClient ensures quick setup for users on Windows systems. This tool is particularly beneficial for those needing reliable and efficient email functionality within command-line environments, offering flexibility and ease of use.
README
UNIMAIL-CLIENT
A command-line tool for sending email through unimail-go-sdk.
Multiple attachments should be passed as multiple --file flags:
--file "a.txt;./a.txt" \
--file "b.txt;./b.txt"
Flags
Flag
Description
-k, --key
API key, defaults to UNIMAIL_KEY
--route
Sets UnimailReq.Route
-f, --form, --from
Sets UnimailReq.From
-r, --receiver
Sets UnimailReq.Receivers; repeat multiple times
-c, --cc
Sets UnimailReq.Cc
-b, --bb, --bcc
Sets UnimailReq.Bcc
-s, --subject
Sets UnimailReq.Subject
-t, --txt
Sets UnimailReq.TxtContent
-H, --html
Sets UnimailReq.HtmlContent
--file
Attachment specification in name;path pairs; repeat the flag for multiple attachments
-v, -V, --version
Show the current version
-h, --help
Show help text
Commands
version
Print the current version:
unimail-client version
unimail-client -v
unimail-client -V
unimail-client --version
update / upgrade
update only checks whether a newer Release of unimails/unimail-client is available; it does not install anything:
unimail-client update
upgrade checks the latest Release, downloads the asset matching the current operating system and CPU architecture, and replaces the currently running executable:
unimail-client upgrade
Auto upgrade is only available for direct Release downloads or locally built binaries. Package-manager installations, such as APT/PPA, Winget, or Homebrew builds, disable upgrade and should be upgraded through the same package manager; update remains available for checking releases.