I have an entity page where the entity has an email field. On that page, there is a form built in a custom module. What I'd like to to is that on form submit, the module sends an email to the address that is the value in the entity field.
So somehow I need to pass that email address to the form submit function.
What is the best way of doing this?