mail

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2016 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Overview

Package mail contains mail configs

Package mail contains mail configs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool              `json:"enabled"`
	Mode    string            `json:"mode"`
	Config  map[string]string `json:"config"`
}

Config contains mail sending instructions.

func (Config) IsEnabled

func (mail Config) IsEnabled() bool

IsEnabled returns whether or not the mailing system is enabled.

func (Config) LoadTemplates

func (mail Config) LoadTemplates(path string)

LoadTemplates loads all templates from the template directory.

func (Config) Send

func (mail Config) Send(to, subject, template string, args map[string]interface{})

Send mail.

func (Config) Validate

func (mail Config) Validate() error

Validate the config.

Jump to

Keyboard shortcuts

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