Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v1.71.0
Client smtp with queue
func NewClient ¶ added in v1.71.0
func NewClient(ctx context.Context, conf ClientConfig) (*Client, error)
NewClient smtp with queue
type ClientConfig ¶ added in v1.71.0
type ClientConfig struct { Server string `desc:"smtp server, auto lookup by default"` Port uint16 `desc:"possible: 25/2525 (unsafe), 587 (TLS), 465 (SSL)"` // 587 by default Username config.AES `desc:"required, usually email"` Password config.AES `desc:"optional, raw password"` FromMail string `desc:"optional, Username by default"` FromName string `desc:"optional, Username prefix by default"` DefaultTo []string `desc:"recipients"` DefaultCc []string `desc:"recipients, carbon copy"` DefaultBcc []string `desc:"recipients, blind carbon copy"` SendQueueSize int // contains filtered or unexported fields }
ClientConfig for smtp sender
func (*ClientConfig) ValidAndRepair ¶ added in v1.71.0
func (c *ClientConfig) ValidAndRepair() error
ValidAndRepair smtp config
Click to show internal directories.
Click to hide internal directories.