email

package
v0.0.0-...-b76ee76 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package email provides email sending via SMTP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetConfig

func ResetConfig()

ResetConfig removes the config.

func Send

func Send(to, subject, body string) error

Send mails an email.

func SetConfig

func SetConfig(i Info)

SetConfig stores the config.

Types

type Info

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

Info holds the details for the SMTP server.

func Config

func Config() Info

Config returns the config.

Jump to

Keyboard shortcuts

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