Set a constant in the EmailJS dashboard, go to your template https://dashboard.emailjs.com/admin/templates, select a template, On your right where there is "To Email" add {{to_email}}
Node code emailjs .send(SERVICE_ID, TEMPLATE_ID, { to_email : "[email protected]", name: "Nania" }, { publicKey: PUBLIC_KEY, privateKey: PRIVATE_KEY, }) .then( (response) => { console.log("Email SUCCESS!", response.status, response.text); }, (err) => { console.log("Email FAILED...", err); } );