email

package
v0.0.0-...-58914f8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(c SMTPInfo)

Configure adds the settings for the SMTP server

func SendEmail

func SendEmail(to, subject, body string) error

SendEmail sends an email

Types

type SMTPInfo

type SMTPInfo struct {
	Username string
	Password string
	Hostname string
	Port     int
	From     string
}

SMTPInfo is the details for the SMTP server

func ReadConfig

func ReadConfig() SMTPInfo

ReadConfig returns the SMTP information

Jump to

Keyboard shortcuts

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