Hey! To solve your problem you can create a nodejs server and create an endpoint that sends the email like in this post. In your React app you can use axios to hit the endpoint and thus sending the email. Just send the message in the parameters so it can be dynamic.
Can this be done with vanilla JS? Like in React?
I guess no. you need a server to send email via nodemailer
You can't.
What you can do is to use cloud functions such as firebase functions, aws lambda or azure functions.
Hey! To solve your problem you can create a nodejs server and create an endpoint that sends the email like in this post. In your React app you can use axios to hit the endpoint and thus sending the email. Just send the message in the parameters so it can be dynamic.
Yeah got it. Thanks for answering!😄