This is a broadcast email server built with Node.js. It allows you to send emails to a large number of recipients simultaneously.
- Send emails to multiple recipients at once
- Customizable email templates
- Support for attachments
- Logging of sent emails
- Error handling and reporting
formData = {
email:"example@gmail.com",
password:"XYZ",
subject:"example",
body:"example",
file:"clients.csv"
}
- /send-emails/{formData}
- Clone the repository:
git clone https://github.com/codeguyakash/broadmailer.git
- Install dependencies:
npm install
- Rename the
.env.local
file to.env
. - Open
.env
and update the following settings:smtpHost
: The hostname of your SMTP serversenderEmail
: The email address from which the emails will be sentsmtpPassword
: Your SMTP server password
- Create a CSV file with the list of recipients. The file should have a column named
email
containing the email addresses. - Run the server:
npm start
- Send a broadcast email by making a POST request to
http://localhost:3001/send-emails
with the following payload:{ "subject": "Hello ✔", "text": "Hello world?", "html": "<b>Hello world?</b>" }
You can ping me on Twitter - @codeguyakash