emailer

package
v0.0.0-...-6dfde0d Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(c Config)

Configure copies the a configuration to the package

func SendHTMLEmail

func SendHTMLEmail(to, subject, body string) error

func SendPasswordReset

func SendPasswordReset(email, resetID string) error

func SendPlainEmail

func SendPlainEmail(to, subject, body string) error

SendEmail sends an email through gmail

func SendWelcomeEmail

func SendWelcomeEmail(username, email string) error

SendWelcomeEmail sends the welcome email to a user

Types

type Config

type Config struct {
	Auth     string
	Password string
	From     string
}

Config is configuration for the emaail

Jump to

Keyboard shortcuts

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