Send mail with the file attached from node js app
This project is a simple job application form that allows users to submit their details along with a resume (PDF format). The server is built with Node.js and Express, and it uses Nodemailer to send the job application details to a specified email address.
- Job application form with fields for personal details
- File upload functionality for submitting resumes
- Server-side handling of form submissions using Express
- Email notification to the specified address with application details and attached resume
-
Clone the repository:
git clone https://github.com/BhosaleAkshay8055/Send-mail-from-node-js.git npm i node index.js
- Fill out the job application form with your details.
- Attach your resume (PDF format).
- Submit the form.
- Check the console for server logs.
- If successful, you will receive an email confirmation.
- SMTP Configuration: a. Open server.js. b. Update the SMTP host, port, secure status, and authentication credentials in the createTransport method.
- Email Recipient: a. Update the to field in the mailOptions object with the desired recipient email address.