email

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

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

Go to latest
Published: Nov 14, 2015 License: MIT Imports: 9 Imported by: 0

README

Build Status

email stuff

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Print(v ...interface{})
	Println(v ...interface{})
	Printf(format string, v ...interface{})
}

type Message

type Message struct {
	To      []*mail.Address
	From    *mail.Address
	Headers map[string]string
	Subject string
	Body    []*Part
	RawBody []byte
}

Message is a nicely packaged representation of the recieved message

func NewMessage

func NewMessage(data []byte) (*Message, error)

NewMessage creates a Message from a data blob

func (*Message) FindByType

func (m *Message) FindByType(contentType string) ([]byte, error)

FindByType finds the first part of the message with the specified Content-Type

func (*Message) HTML

func (m *Message) HTML() ([]byte, error)

HTML returns the text/html content of the message, if any

func (*Message) ID

func (m *Message) ID() string

func (*Message) Plain

func (m *Message) Plain() ([]byte, error)

Plain returns the text/plain content of the message, if any

type Part

type Part struct {
	Body []byte
	// contains filtered or unexported fields
}

Part represents a single part of the message

type QuietLogger

type QuietLogger struct{}

func (*QuietLogger) Print

func (l *QuietLogger) Print(v ...interface{})

func (*QuietLogger) Printf

func (l *QuietLogger) Printf(format string, v ...interface{})

func (*QuietLogger) Println

func (l *QuietLogger) Println(v ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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