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
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.
License: CC-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.
Cite this
iinventedlight. 2026. "Go net/smtp: a frozen SMTP client." iinventedlight Library, iil:note:e3jsf0m5, version of 2026-11-23. https://iinventedlight.com/library/notes/go-net-smtp/. License: CC-BY-4.0.
@misc{iil_note_e3jsf0m5,
author = {{iinventedlight}},
title = {{Go net/smtp: a frozen SMTP client}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-23},
url = {https://iinventedlight.com/library/notes/go-net-smtp/},
note = {Permanent ID iil:note:e3jsf0m5. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- go-net-smtp.schema.json (schema; CC-BY-4.0)
- go-net-smtp.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/go-net-smtp.md.