How to make "to":"hello@gmail.com" dynamic when sending email in Strapi with nextJs

If this ia custom controller you can use ctx.body to get the content of the body where the input is.