https://github.com/lil5/go-mail-cli
A CLI tool to generate html emails.
https://github.com/lil5/go-mail-cli
cli email go gohtml gohtml5 golang gotemplate-engine html mail template
Last synced: 11 months ago
JSON representation
A CLI tool to generate html emails.
- Host: GitHub
- URL: https://github.com/lil5/go-mail-cli
- Owner: lil5
- License: mit
- Created: 2020-12-16T00:28:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-21T16:43:16.000Z (over 5 years ago)
- Last Synced: 2024-12-26T18:16:38.824Z (over 1 year ago)
- Topics: cli, email, go, gohtml, gohtml5, golang, gotemplate-engine, html, mail, template
- Language: HTML
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/lil5/go-mail-cli/blob/master/LICENSE.md)
# GO CLI
A CLI tool to generate html emails. Using [`go-premailer`](https://github.com/vanng822/go-premailer) and the [`go template`](https://golang.org/pkg/text/template/) engine.
## Usage
1. Download the latest binary from the [releases](https://github.com/lil5/go-mail-cli/releases). If you don't find your required architecture or OS please follow the build instructions.
2. Create a directory structure like so:
- `build`
- `templates`
- `pages`
3. Run the binary, this builds html files in a build directory from each `*.gohtml` file inside the `pages` directory, make sure to run the binary from the root of the directory structure.
```
$ ./gomail--
```
## Build
1. Git clone this repository.
2. `cd` into `v2` subdirectory.
3. Run `go build -o bin/gomail`