mailer

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2014 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUserActiveCode

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

create a time limit code for user active

func GetMailTmplData

func GetMailTmplData(u *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, u *models.User)

Send email verify active email.

func SendAsync

func SendAsync(msg *Message)

Async Send mail message

func SendCollaboratorMail added in v0.4.0

func SendCollaboratorMail(r *middleware.Render, u, owner *models.User,
	repo *models.Repository) error

SendCollaboratorMail sends mail notification to new collaborator.

func SendIssueMentionMail added in v0.3.0

func SendIssueMentionMail(r *middleware.Render, u, owner *models.User,
	repo *models.Repository, issue *models.Issue, tos []string) error

SendIssueMentionMail sends mail notification for who are mentioned in issue.

func SendIssueNotifyMail added in v0.3.0

func SendIssueNotifyMail(u, owner *models.User, repo *models.Repository, issue *models.Issue) ([]string, error)

SendIssueNotifyMail sends mail notification of all watchers of repository.

func SendRegisterMail

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

Send user register mail with active code

func SendResetPasswdMail added in v0.3.0

func SendResetPasswdMail(r *middleware.Render, u *models.User)

Send reset password email.

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