Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailConfig ¶
type EmailConfig struct { // The hostname or ip address of the mail server Server string // The mail server submission port Port int // the From email: can be in the form: "Info <info@sec51.com>" From string // The username to authenticate Username string // The password to authenticate Password string // whether to make a TLS connection UseTLS bool // whether to use username and password for authentication UseAUTH bool // Skip verification of TLS certificate InsecureSkipVerify bool }
func (*EmailConfig) Send ¶
func (c *EmailConfig) Send(body, to, subject string) error
Click to show internal directories.
Click to hide internal directories.