I am trying to have an email sent to a site visitor .
When the enter their email address in the text field, and click the login button, an email should be sent to the address they provided but I am getting an error.
Please post a larger portion of your code (especially the part where you trigger the function), but not as screenshot. Copy and paste the code in a code snippet block