sender

package
v0.0.0-...-fa4b448 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTemplate

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

ParseTemplate : this is the method that parse the html file

func SendEmailVerification

func SendEmailVerification(domain string, apiKey string, template *TemplateData, templateFileName string, rootdir string) (string, error)

SendEmailVerification : this method sends the email attach with template to verify the email

func SendResetPassword

func SendResetPassword(domain string, apiKey string, template TemplateData, templateFileName string, rootdir string) (string, error)

SendResetPassword : send the reset password mail to the semder

Types

type TemplateData

type TemplateData struct {
	Name  string
	URL   string
	Site  string
	From  string
	Email string
}

TemplateData : provide the structure of data to the given email

Jump to

Keyboard shortcuts

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