Documentation ¶
Index ¶
- func AgnosticAuth(identity, username, password, host string) gosmtp.Auth
- func LoginAuth(username, password string) gosmtp.Auth
- type Sender
- func (s *Sender) BatchSend(ctx email.Context, templateName string, params email.Params, from string, ...) error
- func (s *Sender) ReplaceSend(send func(string, string, gosmtp.Auth, string, []string, []byte) error)
- func (s *Sender) Send(ctx email.Context, templateName string, params email.Params, from string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgnosticAuth ¶ added in v0.17.0
AgnosticAuth returns an Auth that match the correct authentication thanks to gosmtp.ServerInfo
Types ¶
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender is used to send emails
func (*Sender) BatchSend ¶ added in v0.10.0
func (s *Sender) BatchSend(ctx email.Context, templateName string, params email.Params, from string, to []email.Recipient) error
BatchSend an email to multiple recipients
Click to show internal directories.
Click to hide internal directories.