mail

package
v0.0.0-...-153da20 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MAIL_TYPE_JOB_NOTIF = "JOB"

Variables

View Source
var MailRequests = make(chan Mail)
View Source
var MailTemplates = map[string]string{
	MAIL_TYPE_JOB_NOTIF: "job_notification",
}

Functions

This section is empty.

Types

type Mail

type Mail struct {
	EmailTo   []string    `json:"email_to"`
	EmailFrom string      `json:"email_from"`
	Type      string      `json:"type"`
	Data      interface{} `json:"data"`
	Subject   string      `json:"subject"`
	Msg       string      `json:"message"`
	Body      []byte
}

func (*Mail) BuildMessage

func (m *Mail) BuildMessage() error

func (*Mail) ParseTemplate

func (m *Mail) ParseTemplate() error

func (*Mail) ProcessEmail

func (m *Mail) ProcessEmail() error

func (*Mail) Send

func (m *Mail) Send() error

Jump to

Keyboard shortcuts

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