Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
The Backend implements SMTP server methods.
func (*Backend) NewSession ¶
type DataHandler ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session represents a SMTP session.
func (*Session) Data ¶
Data is a callback function for handling DATA command. It reads the email data from the provided io.Reader, parses it using letters library, and calls the dataHandler with the parsed email data.
Click to show internal directories.
Click to hide internal directories.