Terminal-based email client for sending emails from the command line.
# Build the application
./build.sh
# Run the application
./run.sh --help
# Send email directly
./run.sh --to="[email protected]" --subject="Subject" --body="Message"
# With attachments
./run.sh --to="[email protected]" --subject="Files" --attachments="file.txt,doc.pdf"# Using Makefile
make build
# Using Go directly
go build -o gomail .
# Cross-platform release build
make release# Direct execution after building
./gomail --to="[email protected]" --subject="Subject" --body="Message"
# Using the run script (builds if needed)
./run.sh --to="[email protected]" --subject="Subject" --body="Message"
# Interactive mode (TUI)
./run.sh
# Setup wizard
./run.sh setupSet environment variables:
GOMAIL_FROM: Your email addressGOMAIL_SMTP_HOST: SMTP serverGOMAIL_SMTP_USERNAME: UsernameGOMAIL_SMTP_PASSWORD: PasswordRESEND_API_KEY: For Resend API (alternative to SMTP)
GoMail includes convenient build and run scripts:
- Builds the application for the current platform
- Automatically determines version from git tags
- Enables CGO for SQLite support
- Makes the binary executable
- Runs the GoMail application
- Automatically builds if binary doesn't exist
- Passes all arguments to the application
- Convenient for development and testing
# Build only
./build.sh
# Run with automatic build
./run.sh --help
# Send email using run script
./run.sh --to="[email protected]" --subject="Test" --body="Hello World"
# Run setup wizard
./run.sh setup