Documentation
¶
Overview ¶
Package smtpd implements a basic SMTP server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { Addr string // TCP address to listen on, defaults to ":25" (all addresses, port 25) if empty Handler Handler Appname string Hostname string }
Server is an SMTP server.
func (*Server) ListenAndServe ¶
ListenAndServe listens on the TCP network address srv.Addr and then calls Serve to handle requests on incoming connections. If srv.Addr is blank, ":25" is used.
Click to show internal directories.
Click to hide internal directories.