Search code examples
node.jsreactjsnodemailer

nodemailer to send mail from portfolio site


I have successfully created a Node.js server with Express and also installed nodemailer to send the data from the 'Contact Me' form from my front-end React app. I have uploaded this on Heroku.

I have a question though - since this endpoint is set up on this public domain, in theory, someone could inspect my source code, find the URL, and build a script out to make a ton of POST requests with random data to blow up my inbox.

Is there anything that can be done to stop this sort of behavior? Where would I even start to research into this?


Solution

  • I think Captcha could help you.