Documentation ¶
Index ¶
- type Manager
- func (m *Manager) Addr() string
- func (m *Manager) Init()
- func (m *Manager) Next(fromServer []byte, more bool) ([]byte, error)
- func (m *Manager) Send(to string, subject string, body string) error
- func (m *Manager) SendWithTemplate(to string, subject string, t *template.Template, data any) error
- func (m *Manager) Start(server *smtp.ServerInfo) (string, []byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { EMAIL_HOST string // Mail server host. EMAIL_PORT int // Mail server port. EMAIL_USERNAME string // Mail server username. EMAIL_PASSWORD string // Mail server password. EMAIL_USE_TLS bool // USE_TLS EMAIL_USE_SSL bool // USE_SSL EMAIL_FROM string // Mail server from address. TIMEOUT time.Duration TLS_Config *tls.Config DEFAULT_AUTH smtp.Auth OnSend func(e *email.Email) // contains filtered or unexported fields }
func (*Manager) SendWithTemplate ¶
Click to show internal directories.
Click to hide internal directories.