Reputation: 57
Please excuse my ignorance.
I'm able to send an email with the following command from my apps directory via the command prompt.
node send-email.js
Though I'm having trouble executing the script from inside my html page, for example via a button click.
What are my steps to accomplish this?
Thank you
Upvotes: 0
Views: 410
Reputation: 668
There are some nice webserver frameworks for NodeJS called express.js, koa.js and etc. You can use them to receive http requests from clients and process them. (like adding an item to a database, making an user logged in, and all kinds of server stuff...)
Upvotes: 2