Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type Mailer interface { // Send sends an email with HTML body to the specified recipient. Send(fromEmail mail.Address, toEmail mail.Address, subject string, htmlBody string, attachments map[string]io.Reader) error }
Mailer defines a base mail client interface.
type Sendmail ¶
type Sendmail struct{}
Sendmail implements `mailer.Mailer` interface and defines a mail client that sends emails via the `sendmail` *nix command.
This client is usually recommended only for development and testing.
type SmtpClient ¶
type SmtpClient struct {
// contains filtered or unexported fields
}
SmtpClient defines a SMTP mail client structure that implements
func NewSmtpClient ¶
NewSmtpClient creates new `SmtpClient` with the provided configuration.
Click to show internal directories.
Click to hide internal directories.