smtp

package
v0.0.0-...-548fb8d Latest Latest
Warning

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

Go to latest
Published: May 20, 2016 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPClient

type SMTPClient struct {
	User      string // user@exmaple.com
	Server    string // smtp.exmaple.com:25 or ssl smtp.exmaple.com:465
	EnableSSL bool   // 465 port ssl conn
	// contains filtered or unexported fields
}

邮件发送

func NewSMTPClient

func NewSMTPClient(user, pass string, ssl bool, server string) (this *SMTPClient)

初始化

func (*SMTPClient) Send

func (this *SMTPClient) Send(to []string, title, context string) (err error)

同步发送

Jump to

Keyboard shortcuts

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