← All notes

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

Sources

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

Permanent ID: iil:note:e3jsf0m5

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.},
}

Markdown

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.

All artifact files (JSON index)

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.