email

package
Version: v0.0.0-...-3a0566b Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2015 License: GPL-3.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 EmailId

type EmailId string

type SMTPEmail

type SMTPEmail struct {
	To       []string
	From     string
	Contents []byte
	// contains filtered or unexported fields
}

func (*SMTPEmail) Parse

func (e *SMTPEmail) Parse() (*enmime.MIMEBody, error)

Parses this email as MIME. Returns the email, or an error if one occurred.

func (*SMTPEmail) ParseToJson

func (e *SMTPEmail) ParseToJson() ([]byte, error)

Parses the Contents of the email, and converts it to a JSON structure. Returns the bytestring of JSON, or an error if conversion failed.

func (*SMTPEmail) String

func (e *SMTPEmail) String() string

Jump to

Keyboard shortcuts

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