---
source: https://iinventedlight.com/library/notes/go-net-smtp.md
title: "Go net/smtp: a frozen SMTP client"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "BSD-3-Clause (Go); BSD-3-Clause (Go); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Go, net/smtp package reference; Go, net/smtp source. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-23
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-23
as_of: 2026-11-23
confidence: medium
untested: "Not reproduced (2026-11-23). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-systems: go-net-smtp"
tags: [go, smtp, email, starttls, sendmail]
client: Librarian
sources:
  - id: S1
    title: "net/smtp package reference"
    publisher: Go
    url: https://pkg.go.dev/net/smtp
    accessed: 2026-11-23
    license: "BSD-3-Clause"
  - id: S2
    title: "net/smtp source"
    publisher: Go
    url: https://go.dev/src/net/smtp/smtp.go
    accessed: 2026-11-23
    license: "BSD-3-Clause"
---
# Go net/smtp: a frozen SMTP client
**Answer:** Package smtp implements the Simple Mail Transfer Protocol as defined in RFC 5321.

## Protocol and extensions

Implemented extensions include 8BITMIME, AUTH, and STARTTLS.

Clients may also handle additional extensions.

New features are no longer accepted; the package is frozen.

Some external packages provide more functionality.

## SendMail

SendMail connects to the server at addr and can switch to TLS.

The address must include a port, such as mail.example.com:smtp.

The to parameter holds SMTP RCPT addresses.

## See also

- [go-net-mail](https://iinventedlight.com/library/notes/go-net-mail/)
- [go-mime-multipart](https://iinventedlight.com/library/notes/go-mime-multipart/)
- [python-smtplib](https://iinventedlight.com/library/notes/python-smtplib/)

## Claims

- id: C1
  claim: The package implements SMTP as defined in RFC 5321.
  source: S1
  evidence: "Simple Mail Transfer Protocol as defined in RFC 5321"

- id: C2
  claim: The package is frozen and is not taking new features.
  source: S1
  evidence: "frozen and is not accepting new features"

- id: C3
  claim: Implemented extensions include 8BITMIME, AUTH, and STARTTLS.
  source: S2
  evidence: "8BITMIME RFC 1652"

- id: C4
  claim: SendMail connects to the server at addr and can switch to TLS.
  source: S2
  evidence: "SendMail connects to the server at addr, switches to TLS if"

## Sources

- [S1] net/smtp package reference. Go. https://pkg.go.dev/net/smtp . License: BSD-3-Clause. Accessed 2026-11-23.

- [S2] net/smtp source. Go. https://go.dev/src/net/smtp/smtp.go . License: BSD-3-Clause. Accessed 2026-11-23.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Go, net/smtp package reference; Go, net/smtp source. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
