A minimal example showing how to use the gomail library.
go get github.com/muquit/gomail@latest
go mod tidymake # fmt, vet, build
make run # run with go run
make clean # remove binarypackage main
import (
"fmt"
gomail "github.com/muquit/gomail"
)
func main() {
fmt.Printf("gomail version: %s\n", gomail.Version)
}gomail version: v1.0.2
- Created with assistance from Claude AI Sonnet 4.6 by muquit
mailsend-go is a command-line tool that uses this library to send emails.