GENMail

GENMail is a multi-platform command-line tool for sending email, with advanced options and support for most major email providers.

Version1.001
Released2026-02-09
PlatformWindows, macOS, Linux
AuthorGENSoftware
Licence Mixed License
  • Send mail from scripts, cron jobs and daemons
  • Works with most major providers and plain relays
  • Full control over authentication, SSL and headers

Overview

GENMail sends email from the command line. It is the piece that lets a script report on itself — a backup that mails its result, a monitor that raises an alert, a daemon that forwards what it has received.

Providers and Transport

Server, port, authentication mode and SSL mode are all set explicitly, so GENMail works equally against an authenticated provider such as Microsoft 365 or Google Workspace and against an internal relay that accepts mail from a trusted subnet without authentication.

Usage

genmail --server smtp.example.com --port 587 \
        --auth login --ssl starttls \
        --from alerts@example.com --to ops@example.com \
        --subject 'Backup complete'

The message body is read from stdin, so the output of the job that just ran can be piped straight in.