Skip to content

Latest commit

 

History

History
140 lines (116 loc) · 5.18 KB

File metadata and controls

140 lines (116 loc) · 5.18 KB

Mdsend

Go Reference

Send markdown files as electronic mail. Maintain mailing lists as templated text files.

Features

  • Durable: mail queues are fault tolerant and atomic, brokered by <www.watermill.io> over SQLite3. Can handle any volume of mail without degredation.
  • Portable: runs on many kinds of systems. Will include an embeddable HTTP service and Posgres support in the future.
  • Flexible: select the mailer backend based on highest deliverability. Swap it out later without changing anything in your letters or templates.
    • Supports recipient list formats: CSV, JSON, YAML, TOML, and Cue.
    • Supports mailing services:
      • SMTP (SMTP_HOST, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD)
      • Mailgun (MG_API_KEY, MG_API_DOMAIN) or SMTP relay
      • Resend via SMTP relay or (RESEND_API_KEY)
      • Amazon SES (requires AWS configuration present, beta)
      • SparkPost (alpha)
      • Loops
      • Cloudflare send
    • Supports additional mailing services by SMTP relay:
      • SMTP2GO
      • Brevo
      • Mailchimp
      • Twilio
      • SparkPost
      • Postmark
      • SendGrid
      • ZeptoMail
      • SendPulse
      • MailTrap
      • MailJet
      • EmailLabs
      • PurelyMail
      • HubSpot? (smtp.hubapi.com)

SMTP relay is often more robust than the provider API. For example, Resend API does not support multi-value headers, but its SMTP relay does.

Examples

Compose a letter as a Markdown file. It must include the subject, the sender, and at least one recipient in the frontmatter:

---
subject: "Test Email"
from: "Sender <test@gmail.com>"
to: "Recipient <test@gmail.com>"
---

# Title of the Example Letter

Write text in **Markdown** notation.

Provide server credentials and point mdsend at the saved file.

export SMTP_HOST=...
export SMTP_PORT=...
export SMTP_USERNAME=...
export SMTP_PASSWORD=...
mdsend letter.md

More usage examples are here:

Installation

  • MacOS:
    brew tap dkotik/tap
    brew install curl mdsend
  • Debian Package: latest release
  • Linux Binary: latest release
  • Windows Binary: latest release
  • Build from source:
    go install github.com/dkotik/mdsend/cmd/mdsend@latest

Development

Mdsend is under active development. Version 1.0.0 is expected by the end of 2026.

This is the list of planned features. ↩

E-mail Tools

Similar Projects