Hello,
I am trying to create a starter template function to use for my nextJS project. I want to send an email with just clicking a button. I am lost on what event to do for it to listen to in order to execute. The only thing I want to happen is it just takes in 2 inputs (title, message) from the frontend, and then just sends the email to a user's targetID.
TL;DR
Developers want to create an Appwrite Function in NextJS for messaging. They are struggling with setting up the function to send an email with two inputs (title, message) from the frontend to a user's targetID.