ok, I've changed those lines and the form is now working, redirecting and sending an email.
I have 2 questions:
1) when I edit the form, those lines reset to true and I have to change the code each time. Is there something I need to change so they don't reset?
2) I need the email to show which checkboxes have been checked and it's not obvious how I do that. The rest of the fields are showing properly in the form.
Thanks for your help.