You can test the project at: https://nodemailer-ghe1.onrender.com/. However, please do not send too many messages at once.
Follow the steps below to use the project:
- Download this repository to your computer and extract it.
- Check if Node.js and npm are installed by running the following commands:
node -v
npm -v
- Create a text file named
.env
in the extracted folder and fill it as shown below:
S_MAIL = "Your email here"
S_PASS = "Your password here"
S_HOST = "SMTP hosting server address"
S_PORT = "Port to SMTP hosting server"
For Gmail, the SMTP server is smtp.gmail.com
, and the port is 587
. You can get this information from your mail service provider.
- Install the required modules using the following terminal commands:
npm i express
npm i body-parser
npm i nodemailer
npm i dotenv
npm i open
- Open the folder with the extracted repository in the terminal and run it using the following command:
node app
- Enter the required data in the inputs and upload a
.txt
file with the email addresses to the designated area.
Note: The file should be formatted as follows:
mail@mail.com
anothermail@mail.com
anothermail1@mail.com
- Click "Send emails."
- Wait for the server's response.