/mailform

Primary LanguageHTML

Mailform

HTTP Contact form -> SMTP E-Mail
Avoids spammers by hCaptcha.

Pretty simple, just 48 lines of python, only in German though.
Personal project for my website.

Environment-Vars (all required)

HCAPTCHA_SITE_KEY=hcaptcha-site-key
HCAPTCHA_SECRET_KEY=0xhCaptchaSecretKey
SMTP_FROM=user@example.com
SMTP_RCPT=contact@yourmail.com
SMTP_SERVER=mailserver.com
SMTP_PASS=password-for-user