mailer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2014 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUserActiveCode

func CreateUserActiveCode(user *models.User, startInf interface{}) string

create a time limit code for user active

func GetMailTmplData

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

func NewMailerContext

func NewMailerContext()

func Send

func Send(msg *Message) (int, error)

Direct Send mail message

func SendActiveMail

func SendActiveMail(r *middleware.Render, user *models.User)

Send email verify active email.

func SendAsync

func SendAsync(msg *Message)

Async Send mail message

func SendNotifyMail

func SendNotifyMail(userId, repoId int64, userName, repoName, subject, content string) error

SendNotifyMail sends mail notification of all watchers.

func SendRegisterMail

func SendRegisterMail(r *middleware.Render, user *models.User)

Send user register mail with active code

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 NewMailMessageFrom

func NewMailMessageFrom(To []string, from, 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