mail

package
v0.0.0-...-acfd841 Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SMTP_USERNAME = utils.Getenv("SMTP_USERNAME", "example@gmail.com")
	SMTP_PASSWORD = utils.Getenv("SMTP_PASSWORD", "secretPass")
	SMTP_SERVER   = utils.Getenv("SMTP_SERVER", "smtp.gmail.com")
	SMTP_PORT     = utils.Getenv("SMTP_PORT", "587")
)

Functions

func ParseTemplate

func ParseTemplate(templateFileName string, data interface{}) (string, error)

func Recovery

func Recovery(data RecoveryData) error

func Send

func Send(emailUser EmailUser, subject, emailTemplate string) error

Types

type EmailUser

type EmailUser struct {
	Username string
	Password string
	Server   string
	Port     string
}

type RecoveryData

type RecoveryData struct {
	Mail string
	Url  string
}

Jump to

Keyboard shortcuts

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