Closed sc0ttj closed 5 years ago
Also
First attempt added ... it uses briskforms.com ...
Users need to create the form at brisk forms, and replace the XXXXXX in the form action
attribute.
To make that easier:
Add $blog_email
and $blog_briskforms_hash
to .site_config
, auto replace in contact.html
Current issues:
User must create the form, choosing return page etc at briskforms.
Better solution:
Use formspree or mailthis.to
Workaround:
$blog_email
into the form action on page load ...using the formspree+JS email injection method is secure, and super easy to setup - user just adds their email to .site_config
.
Using the info provided in
.site_config
, it should be possible to build a contact page that email the site author/owner ($blog_author
).To do:
$blog_email
into.site_config
create_page "$contact_form_html" > contact.html
Use a service to send the emails, like one of these:
(reviews of some of the above here: https://deluxeblogtips.com/best-contact-forms-for-static-websites/) If they fail, use a fallback mailto href link:
<a href="mailto:me@company.com?subject=Hello&body=We+want+to+hire+you">Contact Us</a>