email

package
v0.0.0-...-dc66ec4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseFile = "base.html"
)

Variables

View Source
var (
	Sender string
)
View Source
var TemplateRootPath = "template"

Functions

func Init

func Init(region string, sender string, accessId string, accessKey string, templateRootPath string)

func SendEmailWithTemplate

func SendEmailWithTemplate(to string, topic string, templateContent string, template2 string, data interface{}) error

func SendEmailWithTemplateFile

func SendEmailWithTemplateFile(to string, topic string, fileTemplatePath string, data interface{})

Types

type Email

type Email struct {
	To      string `json:"to"`
	Subject string `json:"subject"`
	Msg     string `json:"msg"`
}

Jump to

Keyboard shortcuts

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