Documentation
¶
Overview ¶
Package sender provides email sender
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct {
logger.L
SMTPClient
EmailParams
}
Email implements sender interface for VerifyHandler Uses common subject line and "from" for all messages
func NewEmailClient ¶
func NewEmailClient(p EmailParams, l logger.L) *Email
NewEmailClient creates email client with prepared smtp
type EmailParams ¶
type EmailParams struct {
Host string // SMTP host
Port int // SMTP port
From string // From email field
Subject string // Email subject
ContentType string // Content type, optional. Will trigger MIME and Content-Type headers
TLS bool // TLS auth
SMTPUserName string // user name
SMTPPassword string // password
TimeOut time.Duration
}
EmailParams with all needed to make new Email client with smtp
Click to show internal directories.
Click to hide internal directories.