How do I create a contact form that sends to a selected person/email?
I've tried this in the fields section:
YAML
to:
type: radio
label: Choice
default: b[email protected]
options:
b[email protected]: Bob
j[email protected]: Jane
with this in the process section:
TWIG
to: '{{form.value.to}}'
But I get the following error:
TXT
0 - Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
This post is helpful, but I still cannot get it to work.