NOTE: This is a demonstration of an email service built using Nuxt.js version 2 and Nodemailer. Please note that client-side validations are not applied in this demo. All validations are performed on the server-side using Nodemailer's built-in validation functions.
- Clone the repository:
git clone https://github.com/vahid-bagheri/nuxt2-nodemailer-email-service.git
- Install dependencies:
cd nuxt2-nodemailer-email-service
yarn install
- Create a
.env
file in the root directory and add your SMTP server details:
SMTP_SERVICE=gmail
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your-email@gmail.com
SMTP_PASSWORD=your-password
- Start the development server:
yarn dev
- Access the application at
http://localhost:3000
.
To use the email sending service, navigate to the /
route. You will be presented with a form to fill out the email details:
Fill out the required fields and click the "Send Email" button. The email will be sent using Nodemailer.
If you want to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch:
git checkout -b my-feature-branch
- Make your changes and commit them:
git add .
git commit -m "Add my feature"
- Push your branch to your fork:
git push -u origin my-feature-branch
- Create a pull request on the original repository.
Thank you for your interest in contributing to this project!