Mailman is a simple client application for generating html emails from markdown files and sending them using an email server.
This project uses the following dependencies:
Install all go dependencies by running the following command.
go install
You need to define a config file in yaml format and a markdown file as email. View the example config files in the examples directory.
Shows the help message for the application.
go run mailman -h
Generates a custom html file from a markdown File and a html template.
go run mailman --config ./examples/ua-service.yaml generate
Send the custom email as html file.
go run mailman --config ./examples/ua-service.yaml send
Build the project by running the following command for a desired platform.
export GOOS=linux
export GOARCH=amd64
go build -o mailman-linux-amd64
Copy the executable to the desired location and make it executable.
chmod +x mailman-linux-amd64
mv mailman-linux-amd64 ~/.local/bin/mailman
Shows the help message for the application.
mailman -h