Closed james-minton closed 6 years ago
I'm not sure we decided yet how to implement this. We'll either have to use some service, or potentially make an AWS Lambda function that forwards the messages. Formspree looks promising. Not sure how much traffic we're expecting on the contact forms, but it looks like it essentially forwards the email content.
All we'd have to do in terms of JavaScript is have a change
listener on the contact type dropdown that updates the form email recipient whenever it's updated.
Thinking through this a bit, I think Formspree is probably our best option for now. At the very least it buys us some time to find something else if we decide another route works better.
Formspree does look good. God help us if we get more than 1000 emails a month.
I'll try the change listener thing, and let you know if I get stuck. Thanks!
Happy Easter, Pat! No need to tackle today, but FYI I had some success experimenting with a change
listener, but can't get it to do what I need to do: make the dropdown selection state change the action
attribute of the form
so it routes to the correct email address.
I think what we could do for now is use this data-email
attribute I've set up in the dropdown as the thing that goes into the form action, just as a test. If you could get that working with the right script, I can later plug in the right formspree link. Thanks!
Hi @pjsier and / or @Lane (whoever has a free moment first) --
I will need some help setting up a form and its routing for Contact Us (page is
/contact
on cms-dev). I have the text set up on the page, but need assistance with the mechanics of it (what service sends the email? How to code the form to make that happen? Etc.)Here's the structure: