smtp

package
v0.0.0-...-2907cc7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CRLF = "\r\n"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(addr, user, pwd string) *Client

func (*Client) Send

func (c *Client) Send(opts ...Option) error

type ContentType

type ContentType string
const (
	Html  ContentType = "html"
	Plain ContentType = "plain"
)

type Option

type Option func(m *message)

func Attachment

func Attachment(filename, contentType string, data []byte) Option

func Content

func Content(typ ContentType, body string) Option

func From

func From(name string, addr ...string) Option

func ReplyTo

func ReplyTo(addr string, name ...string) Option

func SendBCC

func SendBCC(bcc ...string) Option

func SendCC

func SendCC(cc ...string) Option

func SendTo

func SendTo(to ...string) Option

func Subject

func Subject(s string) Option

Jump to

Keyboard shortcuts

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