Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileNotifier ¶
type FileNotifier struct {
// contains filtered or unexported fields
}
FileNotifier a notifier to send emails to SMTP servers.
func NewFileNotifier ¶
func NewFileNotifier(configuration schema.FileSystemNotifierConfiguration) *FileNotifier
NewFileNotifier create an FileNotifier writing the notification into a file.
func (*FileNotifier) StartupCheck ¶
func (n *FileNotifier) StartupCheck() (err error)
StartupCheck implements the startup check provider interface.
type MIMECharacteristics ¶ added in v4.36.5
MIMECharacteristics represents specific MIME related characteristics.
func NewMIMECharacteristics ¶ added in v4.36.5
func NewMIMECharacteristics(data []byte) MIMECharacteristics
NewMIMECharacteristics detects the SMTP MIMECharacteristics for the given data bytes.
type Notifier ¶
type Notifier interface { model.StartupCheck Send(recipient mail.Address, subject string, bodyText, bodyHTML []byte) (err error) }
Notifier interface for sending the identity verification link.
type SMTPNotifier ¶
type SMTPNotifier struct {
// contains filtered or unexported fields
}
SMTPNotifier a notifier to send emails to SMTP servers.
func NewSMTPNotifier ¶
func NewSMTPNotifier(config *schema.SMTPNotifierConfiguration, certPool *x509.CertPool, templateProvider *templates.Provider) *SMTPNotifier
NewSMTPNotifier creates a SMTPNotifier using the notifier configuration.
func (*SMTPNotifier) Send ¶
func (n *SMTPNotifier) Send(recipient mail.Address, subject string, bodyText, bodyHTML []byte) (err error)
Send is used to email a recipient.
func (*SMTPNotifier) StartupCheck ¶
func (n *SMTPNotifier) StartupCheck() (err error)
StartupCheck implements the startup check provider interface.