mailer

package
v0.0.0-...-f6f40c8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSupportMail

func NewSupportMail(message *models.SupportMessage)

func NewSupportNotification

func NewSupportNotification(message *models.SupportMessage)

Types

type Attachment

type Attachment struct {
	Name       string
	Path       string
	Downloaded bool
}

type Message

type Message struct {
	To         string
	From       string
	Subject    string
	ReplyTo    string
	Body       string
	Attachment *Attachment
	Vars       map[string]interface{}
}

func NewMail

func NewMail(to, subject string) *Message

func (*Message) Send

func (m *Message) Send(templateName string) error

Jump to

Keyboard shortcuts

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