# wneessen/go-mail

📧 Easy to use, yet comprehensive library for sending mails with Go

Repository: https://github.com/wneessen/go-mail
Canonical: https://ross.abutalabs.com/products/go-mail
Homepage: https://go-mail.dev
Language: Go
License: MIT
License Family: permissive
Topics: golang, smtp, mail, go, rfc5322, go-mail, hacktoberfest, golang-library, email
Last push: 2026-08-17T13:23:13+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 92, longevity 100
- inputs: {"age_days": 1642, "days_push": 16, "days_rel": 55, "gap_med": 27.0, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1471, forks 108 (observed 2026-08-28T04:04:49.259339+00:00)

## What it is
go-mail is a modern, feature-rich Go library for composing and sending email over SMTP. It provides mail composition, encoding, DKIM and S/MIME signing, attachments, templating, and TLS/SMTP auth options with a small dependency footprint built mainly on the Go standard library.

## Use cases
- send email from a Go application
- send transactional emails via SMTP in Go
- sign outgoing emails with DKIM or S/MIME
- send emails with attachments and inline images
- send templated HTML emails
- connect to SMTP servers with STARTTLS or implicit TLS
- import and export EML messages programmatically

## When to choose
- you need a comprehensive, idiomatic Go email library with secure defaults
- you want DKIM/S/MIME signing, attachments, and templating in one package
- you prefer minimal dependencies built on the Go standard library
- you need fine-grained TLS policies and SMTP auth mechanisms

## When to avoid
- you need a full mail server or IMAP/POP3 retrieval - this only sends mail
- you want a hosted email API client (e.g. SendGrid) rather than raw SMTP delivery
- you work outside the Go ecosystem

## Facets
- artifact type: library
- maturity: active
- function: email, http-client, auth, cryptography, templating, middleware
- domain: email, developer-tools, backend, apis
- platform: go, cross-platform, cli
- tags: smtp, dkim, smime, starttls, mail-composition, eml, mua, rfc5322

## Member repositories
- wneessen/go-mail (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:49.259339+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:34:47.217491+00:00, confidence not recorded.
  - readme: https://github.com/wneessen/go-mail (fetched 2026-08-28T04:04:49.259339+00:00, sha e3a2fce3052f)
  - homepage: https://go-mail.dev (fetched 2026-08-29T11:42:37.438652+00:00, sha 94677703be07)
- Data as of 2026-08-30T08:39:29.467469+00:00.
