Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `json:"enabled"` From []string `json:"from"` Host string `json:"host"` Port int `json:"port"` Username string `json:"username"` Password string `json:"password"` TmpDir string `json:"tmpDir"` }
type MailContext ¶
type MailContext struct { *Config Dialer *gomail.Dialer Message *gomail.Message // contains filtered or unexported fields }
func (*MailContext) DialAndSend ¶
func (p *MailContext) DialAndSend() error
func (*MailContext) EmbedBuffer ¶
func (p *MailContext) EmbedBuffer(name string, body []byte) error
func (*MailContext) SetHeader ¶
func (p *MailContext) SetHeader(field string, value ...string)
Click to show internal directories.
Click to hide internal directories.