MITupdated 8d ago
Send email: echo "Body" | sendmail recipient@example.com With subject: echo -e "Subject: Hello\n\nBody text" | sendmail -t recipient@example.com
O que dá para fazer com Email?
name: email description: Send emails via SMTP or sendmail. Use when sending transactional emails or notifications programmatically. metadata: category: messaging dependencies: cli: sendmail checkCommand: which sendmail || which msmtp install: darwin: { brew: msmtp } linux: { apt: msmtp } config: - name: SMTP_HOST label: SMTP Server type: string required: false - name: SMTP_PORT label: SMTP Port type: string required: false
Send emails via command line.
Using sendmail/msmtp
- Send email:
echo "Body" | sendmail recipient@example.com - With subject:
echo -e "Subject: Hello\n\nBody text" | sendmail -t recipient@example.com
Using SMTP with curl
curl --url "smtps://${SMTP_HOST}:${SMTP_PORT}" \
--mail-from "sender@example.com" \
--mail-rcpt "recipient@example.com" \
--user "${SMTP_USER}:${SMTP_PASS}" \
--upload-file email.txt
email.txt format
From: Sender <sender@example.com>
To: Recipient <recipient@example.com>
Subject: Subject line
Content-Type: text/plain; charset=utf-8
Body text here.
Notes
- Configure msmtp at
~/.msmtprc - Never hardcode SMTP credentials in scripts
Instalação
Adicione Email ao seu cliente. Escolha o que você usa.
npx skills add fworks-tech/agenthoodInstalls every skill in the repository, then prompts for which to keep.
/plugin marketplace add fworks-tech/agenthoodAdds the repository as a plugin marketplace; install individual plugins with `/plugin install`.
git clone https://github.com/fworks-tech/agenthood
cp -r skills/email ~/.claude/skills/A skill is a plain directory. Copy it into `.claude/skills/` in a project or in your home directory.
Pontuação
64 / 100
Boa