email

package
v0.0.0-...-a894b33 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTableTitle

func GetTableTitle(args ...interface{}) string

* Function to tableize the data

func TableizeData

func TableizeData(args ...interface{}) template.HTML

* Function to tableize the data

Types

type HeaderInfo

type HeaderInfo struct {
	To      []string
	Bcc     []string
	Subject string
	ReplyTo string
}

* Simple struct for email

type Interface

type Interface interface {

	/**
	Get the specific news istem
	*/
	SendEmail(email *HeaderInfo, body string, attachments map[string][]*utils.Base64File) error

	/**
	Send html email
	*/
	SendEmailTemplateString(email *HeaderInfo, templateString string, data interface{}, attachments map[string][]*utils.Base64File) error
	SendEmailTemplateFile(email *HeaderInfo, templateString string, data interface{}, attachments map[string][]*utils.Base64File) error

	/**
	Send html email
	*/
	SendEmailTable(email *HeaderInfo, tableData TableInfo, attachments map[string][]*utils.Base64File) error
}

* Simple email message

type SmtpSender

type SmtpSender struct {
	// contains filtered or unexported fields
}

* Simple struct for email

func NewSmtpSender

func NewSmtpSender(configFile ...string) *SmtpSender

Provide a method to make a new AnimalRepoSql

func (*SmtpSender) SendEmail

func (repo *SmtpSender) SendEmail(email *HeaderInfo, body string, attachments map[string][]*utils.Base64File) error

* Get all of the news

func (*SmtpSender) SendEmailTable

func (repo *SmtpSender) SendEmailTable(email *HeaderInfo, tableData TableInfo, attachments map[string][]*utils.Base64File) error

* Get all of the news

func (*SmtpSender) SendEmailTemplateFile

func (repo *SmtpSender) SendEmailTemplateFile(email *HeaderInfo, templateFile string, data interface{}, attachments map[string][]*utils.Base64File) error

* Get all of the news

func (*SmtpSender) SendEmailTemplateString

func (repo *SmtpSender) SendEmailTemplateString(email *HeaderInfo, templateString string, data interface{}, attachments map[string][]*utils.Base64File) error

* Get all of the news

type TableInfo

type TableInfo interface {

	//Check to see if it node
	IsNode() bool

	//Get the title
	GetTitle() string

	//Get value
	GetValue() string

	//Get the children
	GetChildren() []TableInfo
}

* Simple email message

Jump to

Keyboard shortcuts

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