Documentation ¶
Overview ¶
Package smtp provides access to SMTP server for sending email.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendMessage ¶
SendMessage sends email using specified SMTP connection
Types ¶
type Config ¶
type Config struct { // IP/hostname of SMTP server Host string // Port number of SMTP server Port int // Username for authentication with SMTP server Username string // Password for authentication with SMTP server Password string // SenderEmail is FROM address SenderEmail string // SenderName is FROM display name SenderName string // AnonymousAuth does not send username/password to server AnonymousAuth bool // Base64EncodeCredentials encodes User and Password as base64 before sending to SMTP server Base64EncodeCredentials bool // UseSSL uses SMTP SSL connection with SMTP server UseSSL bool // SkipSSLVerify allows unverified certificates SkipSSLVerify bool }
Config is used to create SMTP server connection
Click to show internal directories.
Click to hide internal directories.