Agent skill

email

Send emails using mailsend-go CLI

Stars 118
Forks 34

Install this agent skill to your Project

npx add-skill https://github.com/olasunkanmi-SE/codebuddy/tree/main/skills/email

Metadata

Additional technical details for this skill

auth
{
    "type": "basic"
}
icon
mail
config
[
    {
        "name": "SMTP_HOST",
        "type": "string",
        "label": "SMTP Host",
        "required": false,
        "placeholder": "smtp.gmail.com"
    },
    {
        "name": "SMTP_PORT",
        "type": "string",
        "label": "SMTP Port",
        "required": false,
        "placeholder": "587"
    }
]
version
1.0.0
category
communication
displayName
Email (SMTP)
dependencies
{
    "cli": "mailsend",
    "install": {
        "linux": {
            "go": "github.com/muquit/mailsend-go@latest"
        },
        "darwin": {
            "go": "github.com/muquit/mailsend-go@latest",
            "brew": "mailsend-go"
        },
        "windows": {
            "go": "github.com/muquit/mailsend-go@latest"
        }
    },
    "checkCommand": "mailsend -V"
}

SKILL.md

Email Skill

This skill allows sending emails via SMTP using the mailsend tool (mailsend-go).

Prerequisites

  • mailsend binary must be in .codebuddy/bin/mailsend
  • SMTP credentials (host, port, user, password)

Usage

Use ./.codebuddy/bin/mailsend to send emails.

Send a simple email

bash
./.codebuddy/bin/mailsend -smtp <smtp_host> -port <smtp_port> -auth -user <username> -pass <password> -from <sender_email> -to <recipient_email> -sub "Subject" -body "Body text"

Send with SSL/TLS (Gmail example)

bash
./.codebuddy/bin/mailsend -smtp smtp.gmail.com -port 587 -starttls -auth -user <username> -pass <password> -from <sender_email> -to <recipient_email> -sub "Subject" -body "Body text"

Notes

  • For Gmail, use App Passwords if 2FA is enabled.
  • Always ask the user for SMTP credentials before sending if not provided.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results