8000 GitHub - trinhminhtriet/mailcli: 📧 MailCLI: A tool for sending fast, templated bulk emails via any SMTP server with CSV support. · GitHub
[go: up one dir, main page]

Skip to content
trinhminhtrietPublic

About

📧 MailCLI: A tool for sending fast, templated bulk emails via any SMTP server with CSV support.

Resources

Stars

8 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

📧 MailCLI


 __  __         _  _   ____  _      ___
|  \/  |  __ _ (_)| | / ___|| |    |_ _|
| |\/| | / _` || || || |    | |     | |
| |  | || (_| || || || |___ | |___  | |
|_|  |_| \__,_||_||_| \____||_____||___|


📧 MailCLI is a tool for sending fast, templated bulk emails via any SMTP server with CSV support.

✨ Features

  • Efficient and customizable bulk email sending with templates.
  • Easily integrates template attributes from CSV files.
  • Compatible with any SMTP server for maximum flexibility.

Why choose this over cat | sed | sendmail < bcc distro_list?

  • 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.

🚀 Installation

go get github.com/trinhminhtriet/mailcli

💡 Usage

$ 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 sender123

template.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,Guest

🤝 How to contribute

We 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.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

📧 MailCLI: A tool for sending fast, templated bulk emails via any SMTP server with CSV support.

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0