79430083

Date: 2025-02-11 13:14:39
Score: 2
Natty:
Report link

You should pass a private key in the same way you pass public key, service template and service id:

var data = {
    service_id: 'YOUR_SERVICE_ID',
    template_id: 'YOUR_TEMPLATE_ID',
    user_id: 'YOUR_PUBLIC_KEY',
    accessToken: 'YOUR_ACCESS_TOKEN',
    template_params: {
        'username': 'James',
        'g-recaptcha-response': '03AHJ_ASjnLA214KSNKFJAK12sfKASfehbmfd...'
    }
};

Documentation: https://www.emailjs.com/docs/rest-api/send/

Here's an article I wrote explaining how to setup sensitive EmailJS data in Vite+React app deployed on Vercel.

https://medium.com/@fadingbeat/securely-sending-emails-with-emailjs-in-a-vite-react-app-on-vercel-5b8a591fd121

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fadingbeat