email

package
v0.0.0-...-69ec8c5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package email is for sending emails for townsourced There are many different transactional email providers, and I expect which ones we use to change in the future, so this package will abstract away all access to those providers so nothing in townsourced should need to change if we change providers API keys will be stored in the private package with the rest of our keys

Index

Constants

This section is empty.

Variables

View Source
var DefaultFrom = &mail.Address{
	Name:    "townsourced",
	Address: "[email protected]",
}

DefaultFrom is the default from address for all outgoing emails

Functions

func Init

func Init(testMode bool) error

Init initialized the mail package, creates any need clients

func Send

func Send(from, to *mail.Address, subject, body string) error

Send sends an email From and To Addresses are automatically included in the template data

Types

This section is empty.

Jump to

Keyboard shortcuts

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