mailer

package
Version: v0.0.0-...-0a81fed Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBody

func BuildBody(from string, to string, subject string, body *bytes.Buffer) []byte

func BuildTemplate

func BuildTemplate(tmpl models.Template, name string, data map[string]interface{}) (*bytes.Buffer, error)

func FindTemplate

func FindTemplate(name string) (*models.Template, error)

func Handle

func Handle(body string) error

func Send

func Send(to string, subject string, body []byte) error

Types

type Payload

type Payload struct {
	Template  string                 `json:"template"`
	Data      map[string]interface{} `json:"data"`
	Recipient string                 `json:"recipient"`
	From      string                 `json:"from"`
}

Source Files

Jump to

Keyboard shortcuts

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