Documentation
¶
Overview ¶
Package send submits messages over SMTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUncertain = errors.New("send: the server may have accepted the message")
ErrUncertain means the whole message reached the server but its verdict did not come back: it may have been accepted. Retrying could deliver it twice.
Functions ¶
Types ¶
type RejectedError ¶ added in v1.14.0
type RejectedError struct {
// Stage is the refused command: "MAIL", "RCPT" or "DATA".
Stage string
// Recipient is the refused address at RCPT, "" at the other stages.
Recipient string
// Code is the reply code, such as 550: 4xx refuses for now, 5xx for good.
Code int
// Enhanced is the enhanced status code, such as "5.1.1"; "" if the server sent none.
Enhanced string
// Message is the server's reply text as it sent it.
Message string
}
RejectedError is the server's refusal of the message at MAIL FROM, at a RCPT TO or at the end of DATA. The server has not accepted the message.
func (*RejectedError) Error ¶ added in v1.14.0
func (e *RejectedError) Error() string