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

So i think the setup is a bit different,

this is using email, and depending on how you set it up currently I use AWS SES for it but others are also possible to use.