mailer

package module
v0.0.0-...-9d579f3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

type Mailer struct {
	Config MailerRC
	Root   string
}

func NewMailer

func NewMailer(root string) (*Mailer, error)

func (*Mailer) Mail

func (m *Mailer) Mail(to []string, mailTemplate string, data interface{}) error

type MailerData

type MailerData struct {
	From string
	To   string
	Data interface{}
}

type MailerRC

type MailerRC struct {
	Sender   string `flag:"mailer-sender"    description:"SMTP Sender"`
	Password string `flag:"mailer-password"  description:"SMTP Password"`
	Host     string `flag:"mailer-server"    description:"SMTP Server"`
	Port     int    `flag:"mailer-port"      description:"SMTP Port"`
}

Jump to

Keyboard shortcuts

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