mailgun-simple
v2.2.0Send outbound emails via the Mailgun API. Uses MAILGUN_API_KEY, MAILGUN_DOMAIN, MAILGUN_REGION, and MAILGUN_FROM.
Installation
Please help me install the skill `mailgun-simple` from SkillHub official store.
npx skills add lksrz/mailgun-simple
Mailgun Simple
Send outbound emails using the official Mailgun JS SDK.
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
MAILGUN_API_KEY |
Yes | — | Your private Mailgun API key. |
MAILGUN_DOMAIN |
Yes | aicommander.dev |
Your verified sending domain. |
MAILGUN_REGION |
Yes | EU |
API region: EU or US. |
MAILGUN_FROM |
No | Postmaster <postmaster@{domain}> |
Default sender address. |
Setup
npm install [email protected] [email protected]
Tools
Send Email
MAILGUN_API_KEY=xxx MAILGUN_DOMAIN=example.com MAILGUN_REGION=EU node scripts/send_email.js <to> <subject> <text> [from]