mailer

package
v0.0.0-...-a64d9b0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMailTmplData

func GetMailTmplData(lang string, user *models.User) map[interface{}]interface{}

func Send

func Send(msg Message) (int, error)

Direct Send mail message

func SendAsync

func SendAsync(msg Message)

Async Send mail message

Types

type Message

type Message struct {
	To      []string
	From    string
	Subject string
	Body    string
	User    string
	Type    string
	Massive bool
	Info    string
}

func NewHtmlMessage

func NewHtmlMessage(To []string, From, Subject, Body string) Message

Create html mail message

func NewMailMessage

func NewMailMessage(To []string, subject, body string) Message

Create New mail message use MailFrom and MailUser

func (Message) Content

func (m Message) Content() string

create mail content

Jump to

Keyboard shortcuts

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