Basic and opinionated website server with email sending capabilities for endpoints like contact forms.
It can be used for simple presentation websites, landing pages, or any other static website that needs a contact form.
usage: ws [<flags>]
Website Server with basic email client for contact forms
Flags:
-h, --[no-]help Show context-sensitive help (also try --help-long
and --help-man).
-c, --config="config.yaml" Path to the configuration file ($WS_CONFIG)
--mail-url="" URL for the mail server ($WS_MAIL_URL)
--mail-username="" Username for the mail server ($WS_MAIL_USERNAME)
--mail-password="" Password for the mail server ($WS_MAIL_PASSWORD)
-v, --[no-]version Show application version.
- go 1.22
- mailpit (for testing emails)
- docker/podman or compatible
- task
- List available tasks to run:
task
- List available tasks to run:
- Add tests
- Use a template file for the email body, like contact.html
MIT