UnimailClient ACCloud
winget install --id=ACCloud.UnimailClient -e This is the first executable client program of Unimail, easy to use quickly.
winget install --id=ACCloud.UnimailClient -e This is the first executable client program of Unimail, easy to use quickly.
A command-line tool for sending email through unimail-go-sdk.
UNIMAIL_KEY environment variable by default-k/--key--file using ; separated name/path pairsversion, update, and upgrade subcommands-h/--help for usage informationWhen the project publishes a Release, you can download the archive for your platform and unpack it locally.
go build -o unimail-client .
After this project is uploaded to your Launchpad PPA:
sudo add-apt-repository ppa:/
sudo apt update
sudo apt install unimail-client
Replace and with your actual PPA owner/name.
Install from Winget:
winget install ACCloud.UnimailClient
The program reads the API key from the UNIMAIL_KEY environment variable by default:
export UNIMAIL_KEY=your_key
On Windows PowerShell:
$env:UNIMAIL_KEY = "your_key"
You can also pass the key directly with -k or --key.
unimail-client -h
unimail-client --help
unimail-client \
-f "Sender Name" \
-r a@example.com \
-r b@example.com \
-c cc@example.com \
-b bcc@example.com \
-s "Hello" \
-t "Plain text content"
To send HTML content, use --html or -H:
unimail-client \
--form "Sender Name" \
--receiver a@example.com \
--subject "Hello" \
--html "<b>Hello</b>"
--file accepts one name;path pair per flag. For multiple attachments, repeat --file:
unimail-client \
-r a@example.com \
-s "With attachment" \
-t "Please see attachment" \
--file "report.pdf;./report.pdf"
Multiple attachments should be passed as multiple --file flags:
--file "a.txt;./a.txt" \
--file "b.txt;./b.txt"
| Flag | Description |
|---|---|
-k, --key | API key, defaults to UNIMAIL_KEY |
-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 |
-h, --help | Show help text |
Print the current version:
unimail-client version
Check the latest Release of unimails/unimail-client. If the current version is older, the program will update itself:
unimail-client update
unimail-client upgrade
Auto update is only available for direct Release downloads or locally built binaries. Package-manager installations, such as APT/PPA, Winget, or Homebrew builds, disable this command and should be upgraded through the same package manager.
unimail-client -r a@example.com -s "Test" -t "Hello"
unimail-client --receiver a@example.com --subject "Test" --html "<h1>Hello</h1>"
unimail-client \
-r a@example.com \
-s "Report" \
-t "Please check the attachment" \
--file "report.pdf;./report.pdf"