A lightweight CLI application written in Go for sending emails using the Resend API. Perfect for quick email notification integrations in Go projects.
🌐 English | Español
- 📤 Send emails via Resend API
- 🔧 Support for multiple recipients (repeatable
-mflag) - 🔐 Environment variables loaded from
.envfile - ⚡ Lightweight and easy to use
- Go 1.21 or higher
- A Resend account with a valid API Key
- A verified domain in Resend (to send to real email addresses)
- Clone the repository:
git clone https://github.com/Dark-Actions/doitall-resend-example.git
cd doitall-resend-example- Install dependencies:
go mod download- Copy the example file and configure your API Key:
cp .env.example .env- Edit the
.envfile and add your Resend API Key:
RESEND_API_KEY=re_your_api_key_here🔑 Get your API Key from the Resend dashboard
go build -o doitall-mail
./doitall-mail -m "recipient@example.com"go run main.go -m "recipient@example.com"go run main.go -m "user1@example.com" -m "user2@example.com".
├── main.go # Application entry point
├── go.mod # Go module and dependencies
├── go.sum # Dependency checksums
├── .env # Environment variables (do not commit)
├── .env.example # Example environment variables
└── README.md # This file
To modify the email content, edit the fields in main.go:
params := &resend.SendEmailRequest{
From: "your-email@domain.com", // Verified sender
To: toMails,
Subject: "Your custom subject",
Html: "<h1>Your HTML content</h1>",
}| Package | Version | Description |
|---|---|---|
| resend-go | v2.28.0 | Official Resend client for Go |
| godotenv | v1.5.1 | Load environment variables from .env |
This is an open source project by Dark-Actions.
- 🌐 Website: https://dark-actions.com
- 📧 Support: support@dark-actions.com
- 📧 Marketing: marketing@dark-actions.com
- 🔗 Domain: doitall.work
This project is open source. Feel free to use and modify it according to your needs.
Made with ❤️ by Dark-Actions
Aplicación CLI ligera escrita en Go para enviar correos electrónicos utilizando la API de Resend. Perfecta para integraciones rápidas de notificaciones por email en proyectos Go.
- 📤 Envío de correos mediante la API de Resend
- 🔧 Soporte para múltiples destinatarios (flag
-mrepetible) - 🔐 Carga de variables de entorno desde archivo
.env - ⚡ Ligero y fácil de usar
- Go 1.21 o superior
- Una cuenta en Resend con API Key válida
- Dominio verificado en Resend (para enviar a correos reales)
git clone https://github.com/Dark-Actions/doitall-resend-example.git
cd doitall-resend-example
go mod downloadcp .env.example .env
# Edita .env y agrega tu RESEND_API_KEY# Compilar y ejecutar
go build -o doitall-mail
./doitall-mail -m "destinatario@ejemplo.com"
# Ejecutar directamente
go run main.go -m "destinatario@ejemplo.com"
# Múltiples destinatarios
go run main.go -m "usuario1@ejemplo.com" -m "usuario2@ejemplo.com"Este es un proyecto de código abierto de Dark-Actions.
- 🌐 Sitio web: https://dark-actions.com
- 📧 Soporte: support@dark-actions.com
- 📧 Marketing: marketing@dark-actions.com
- 🔗 Dominio: doitall.work
Hecho con ❤️ por Dark-Actions