email

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Username string `toml:"username"`
	Password string `toml:"password"`
	Host     string `toml:"host"`
	Port     int    `toml:"port"`

	// From
	Name string `toml:"name"`
	Addr string `toml:"addr"`
}

Config .

type Email

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

Email .

func New

func New(c *Config) *Email

New new a smtp dialer

func (*Email) Send

func (e *Email) Send(subject, body string, to []string) (err error)

Send .

func (*Email) SendAttach

func (e *Email) SendAttach(filename, subject string, to []string) (err error)

SendAttach .

Jump to

Keyboard shortcuts

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