Skip to content

This project demonstrates how to integrate Nuxt.js and Nodemailer to create a simple email sending service. It allows users to send emails with customizable subject, body, and recipient addresses. The service is secure and uses SMTP authentication to send emails.

License

Notifications You must be signed in to change notification settings

vahid-bagheri/nuxt2-nodemailer-email-service

Repository files navigation

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.

Getting Started

  1. Clone the repository:
git clone https://github.com/vahid-bagheri/nuxt2-nodemailer-email-service.git
  1. Install dependencies:
cd nuxt2-nodemailer-email-service
yarn install
  1. 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
[email protected]
SMTP_PASSWORD=your-password
  1. Start the development server:
yarn dev
  1. Access the application at http://localhost:3000.

Usage

To use the email sending service, navigate to the / route. You will be presented with a form to fill out the email details:

Email Form

Fill out the required fields and click the "Send Email" button. The email will be sent using Nodemailer.

Contributing

If you want to contribute to this project, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch:
git checkout -b my-feature-branch
  1. Make your changes and commit them:
git add .
git commit -m "Add my feature"
  1. Push your branch to your fork:
git push -u origin my-feature-branch
  1. Create a pull request on the original repository.

Thank you for your interest in contributing to this project!

About

This project demonstrates how to integrate Nuxt.js and Nodemailer to create a simple email sending service. It allows users to send emails with customizable subject, body, and recipient addresses. The service is secure and uses SMTP authentication to send emails.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published