email

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEmail

func SendEmail(sendEmailRequest SendEmailRequest) error

Types

type SendEmailRequest

type SendEmailRequest struct {
	SendgridRequest SendgridRequest
	Url             string
	EmailFromName   string
	EmailFrom       string
	EmailToken      string
}

type SendgridRequest

type SendgridRequest struct {
	MailTo      string `json:"mail_to,omitempty"`
	Subject     string `json:"subject"`
	TextMessage string `json:"text_message"`
	HtmlMessage string `json:"html_message"`
}

func PrepareEmail

func PrepareEmail(
	mailTo string,
	data map[string]string,
	templateKey string,
	defaultSubject string,
	defaultText string,
	lang string) SendgridRequest

Jump to

Keyboard shortcuts

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