Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMailer ¶ added in v0.10.2
func RegisterMailer[T kernel.KernelConfig](ctx context.Context) error
Types ¶
type MailConfiger ¶ added in v0.10.2
type MailConfiger interface {
MailConfig() Config
}
type SMTPConfig ¶
func (*SMTPConfig) Mailer ¶
func (c *SMTPConfig) Mailer() Mailer
type SMTPMailer ¶
type SMTPMailer struct {
// contains filtered or unexported fields
}
func NewSMTPMailer ¶
func NewSMTPMailer(host string, port int, username, password, from string) *SMTPMailer
func (*SMTPMailer) Mail ¶
func (s *SMTPMailer) Mail(m *Message) error
Click to show internal directories.
Click to hide internal directories.