mail

package
v0.0.0-...-355f60d Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 5 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 {
	// contains filtered or unexported fields
}

Config stores the sender information for mail

func NewMailConfig

func NewMailConfig(mailAddrFile string, mailPassFile string) (*Config, error)

NewMailConfig creates a config with a valid sender info

func (*Config) Send

func (c *Config) Send(recipients []string, subject string, body string) error

Send sends an email

Jump to

Keyboard shortcuts

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