email

package
v0.0.0-...-4623330 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONTENT_TYPE_HTML = "Content-Type: text/html; charset=UTF-8"
	CONTENT_TYPE_TEXT = "Content-Type: text/plain; charset=UTF-8"
)

Variables

View Source
var (
	DefaultAccount = Account{
		Username: "ckeyer_alarm@163.com",
		Nickname: "Ckeyer-Alarm",
		Password: "fpwjxqryyrfqccjr",
		Host:     "smtp.163.com:25",
	}
	TmpAccount = Account{
		Username: "sf_monitor@163.com",
		Nickname: "SF-Monitor",
		Password: "cqwsmdgupjmareyc",
		Host:     "smtp.163.com:25",
	}
	FunxData = Account{
		Username: "funxdata@163.com",
		Nickname: "Funx-Data",
		Password: "orrmtgbgmdxmcsru",
		Host:     "smtp.163.com:25",
	}
	CKAC = Account{
		Username: "alarm@ckeyer.com",
		Nickname: "Ckeyer-Lala",
		Password: "ginopqrrimzcbhfb",
		Host:     "smtp.qq.com:25",
	}
)
View Source
var (
	ERR_NO_SEND_LIST = errors.New("no found send list")
)

Functions

func SendMail

func SendMail(account Account, title, body string, send_to ...string) error

func SetContent

func SetContent(content string) []byte

Types

type Account

type Account struct {
	Username string
	Nickname string
	Password string
	Host     string
}

func NewAccount

func NewAccount(user, nick, passwd, host string) *Account

Jump to

Keyboard shortcuts

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