__ __ _ _ ____ _ ___
| \/ | __ _ (_)| | / ___|| | |_ _|
| |\/| | / _` || || || | | | | |
| | | || (_| || || || |___ | |___ | |
|_| |_| \__,_||_||_| \____||_____||___|
📧 MailCLI is a tool for sending fast, templated bulk emails via any SMTP server with CSV support.
- Efficient and customizable bulk email sending with templates.
- Easily integrates template attributes from CSV files.
- Compatible with any SMTP server for maximum flexibility.
- Supports both plain text and HTML email formats.
- Leverages Go's powerful templating features, including conditionals and dynamic content.
- Addresses SMTP provider limitations by avoiding excessive BCC recipients (commonly over 1,000).
- Sends emails concurrently for improved performance and faster delivery.
go get github.com/trinhminhtriet/mailcli$ mailcli -html template.html -text template.txt -csv recipients.csv \
-sender "No Name <noname@domain.com>" \
-subject "Hello, World!" -server smtp.domain.com -port 587 \
-user sender -password sender123template.html:
<h1>Hello, {{.Name}}! You are a {{.Type}}</h1>
template.txt:
Hello, {{.Name}}! You are a {{.Type}}.
recipients.csv:
Email,Name,Type
john@doe.com,John Doe,Human
alice@example.com,Alice,Admin
bob@example.com,Bob,User
charlie@example.com,Charlie,GuestWe welcome contributions!
- Fork this repository;
- Create a branch with your feature:
git checkout -b my-feature; - Commit your changes:
git commit -m "feat: my new feature"; - Push to your branch:
git push origin my-feature.
Once your pull request has been merged, you can delete your branch.
This project is licensed under the MIT License - see the LICENSE file for details.