gmail

package module
v0.0.0-...-2801460 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2014 License: BSD-3-Clause Imports: 9 Imported by: 0

README

gmail

gmail sending and receiving

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddrReg = regexp.MustCompile("(?i)[=A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}")

Functions

func DecodeText

func DecodeText(body, mimeContent string) string

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(account, password string) (result *Client)

func (*Client) Close

func (self *Client) Close() error

func (*Client) Debug

func (self *Client) Debug() *Client

func (*Client) ErrorHandler

func (self *Client) ErrorHandler(f func(e error)) *Client

func (*Client) MailHandler

func (self *Client) MailHandler(f imap.MailHandler) *Client

func (*Client) Send

func (self *Client) Send(from, subject, message string, recips ...string) (err error)

func (*Client) Start

func (self *Client) Start() (result *Client, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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