email

package
v0.0.0-...-e5993db Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemplateDir = "email/templates"

	BotReportTemplate = "bot_report.html"
)

Variables

This section is empty.

Functions

func GetTemplatePath

func GetTemplatePath(templateName string) string

Types

type Email

type Email struct {
	UserId  uint
	From    string
	To      []string
	Subject string
	Body    string
}

func (Email) GetMessageData

func (e Email) GetMessageData() (string, error)

type Sender

type Sender struct {
	MessageId string
}

func NewSender

func NewSender() *Sender

func (*Sender) Send

func (s *Sender) Send(email Email) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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