Documentation ¶
Overview ¶
mail sender package
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoLocalMailDelivery = errors.New("no local mail store for user")
Functions ¶
This section is empty.
Types ¶
type Bouncer ¶
mail bounce handler paramters are (recipiant email address, from email address, the filepath of the message, network related error or nil for regular bounce)
type DeliverJob ¶
type DeliverJob interface { // cancel delivery job Cancel() // wait for completion, return true if delivered otherwise false Wait() bool // run delivery Run() }
func NewLocalDelivery ¶
func NewLocalDelivery(st mailstore.Store, fpath string) DeliverJob
new local delivery job
type LocalDeliverJob ¶
type LocalDeliverJob struct {
// contains filtered or unexported fields
}
func (*LocalDeliverJob) Cancel ¶
func (l *LocalDeliverJob) Cancel()
local delivery is not cancelable TODO: make this configurable
type Mailer ¶
type Mailer struct { // get mail storage for local user Local mailstore.MailRouter // a dial function to obtain outbound smtp client Dial Dialer // number of times to try to deliver mail // 0 for unlimited Retries int // called if mail bounces or fails to deliver Bounce Bouncer // domain resolver function Resolve Resolver // delivery success hook, called with (recipiant email address, from email address) Success func(string, string) // contains filtered or unexported fields }
mail delivery
type RemoteDeliverJob ¶
type RemoteDeliverJob struct {
// contains filtered or unexported fields
}
job for delivering mail remotely
Click to show internal directories.
Click to hide internal directories.