Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.14 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.14 KB

Coverage Status Maintainability codebeat badge

Mailer

Small library to send emails via Gmail SMTP server.

1. Create your secure Google App Password.

2. Configure your SMTP credentials via environment variable:

export MAILER_USERNAME=.........
export MAILER_PASSWORD=.........

3. Run example using go run

go run main.go -from "[email protected]" -to "[email protected]" \
    -subject "test mailer" \
    -body "hello from command line"

Makefile targets:

  • build - Builds binary to file path "bin/mailer"
  • run_tests - Run Golang tests.
  • test_coverage - Run Golang test converage.
  • show_coverage - Run and displays html test coverage.
  • cleanup - Removes temporary files.