79140385

Date: 2024-10-30 09:14:35
Score: 1.5
Natty:
Report link

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); } );

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Amoko Ivan