Working version of Nodemailer.js using Angular as the fron-end, HTTP for server-side communication and Express.js on the back-end.
- Angular
- Node.js
- Node Mailer
- Node Mailer smtp-transport
- Express
- Body-Parser
- Notyf
- dotenv-node
- Download zip file
- Open terminal and navigate into folder
- Run commands:
- Installs Node Packages:
npm install
- Start server with:
-
npm start
- Start nodemon with:
-
npm test
- App listening on
http://localhost:5000/
- note: App was written with intended use with an Yahoo account. This app will work with Gmail account but will need some services turned off in your Google account. You will also need to update this code:
service: 'yahoo', (update email service provider)
auth: {
user: '[email protected]', (update email address that will be sending emails)
pass: 'xxxxxxxxxx' (update password for account above)
}
found in app.js