mail

package module
v0.0.0-...-12addf8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2018 License: ISC Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL