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:"[email protected]",
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.localfile to.env. - Open
.envand 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
emailcontaining the email addresses. - Run the server:
npm start - Send a broadcast email by making a POST request to
http://localhost:3001/send-emailswith the following payload:{ "subject": "Hello ✔", "text": "Hello world?", "html": "<b>Hello world?</b>" }
You can ping me on Twitter - @codeguyakash