|Jan-Lukas Else f79df1a8c3||8 months ago|
|.drone.yml||1 year ago|
|.gitignore||1 year ago|
|Dockerfile||8 months ago|
|LICENSE||1 year ago|
|README.md||1 year ago|
|config.go||8 months ago|
|config_test.go||8 months ago|
|form.html||1 year ago|
|forms.go||1 year ago|
|forms_test.go||1 year ago|
|go.mod||8 months ago|
|go.sum||8 months ago|
|mail.go||8 months ago|
|mail_test.go||1 year ago|
|mailygo.go||1 year ago|
|spamcheck.go||8 months ago|
|spamcheck_test.go||8 months ago|
MailyGo is a small tool written in Go that allows to send HTML forms, for example from static websites without a dynamic backend, via email. It can be used for contact forms on pages created with Hugo (example).
MailyGo is lean and resource-saving. It can be installed with just one executable file.
MailyGo can be compiled with the following command:
go get -u codeberg.org/jlelse/mailygo
It can then be executed directly.
To run the server, you must set a few environment variables from the list below.
||required||-||The SMTP user|
||required||-||The SMTP password|
||required||-||The SMTP host|
||optional||587||The SMTP port|
||required||-||The sender mail address|
||required||-||All allowed recipients (separated by
||The port on which the server should listen|
||Honeypot form fields (separated by
||optional||-||Google API Key for the Google Safe Browsing API|
||List of spam words|
Special form fields
You can find a sample form in the
form.html file. Only fields whose name do not start with an underscore (
_) will be sent by email. Fields with an underscore serve as control fields for special purposes:
||optional||-||Recipient, it must be in
||optional||-||Email address which should be configured as replyTo, (most probably not hidden)|
||optional||-||URL to redirect to, hidden|
||optional||-||Name of the form, hidden|
||optional||-||(Default) "Honeypot" field, not hidden, advised (see notice below)|
If a Google Safe Browsing API key is set, submitted URLs will also get checked for threats.
MailyGo is licensed under the MIT license, so you can do basically everything with it, but nevertheless, please contribute your improvements to make MailyGo better for everyone. See the LICENSE file.