mail

package
v1.59.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: AGPL-3.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

type Mailer struct {
	Runtime *env.Runtime
	Store   *domain.Store
	Context domain.RequestContext
	Config  ds.Config
	Dialer  *mail.Dialer
}

Mailer provides emailing facilities

func (*Mailer) DocumentApprover added in v1.56.0

func (m *Mailer) DocumentApprover(recipient, inviter, url, document string)

DocumentApprover notifies user who has just been granted document approval rights.

func (*Mailer) Initialize added in v1.58.0

func (m *Mailer) Initialize()

Initialize prepares mailer instance for action.

func (*Mailer) InviteExistingUser

func (m *Mailer) InviteExistingUser(recipient, inviter, url string)

InviteExistingUser invites a known user to an organization.

func (*Mailer) InviteNewUser

func (m *Mailer) InviteNewUser(recipient, inviter, url, username, password string)

InviteNewUser invites someone new providing credentials, explaining the product and stating who is inviting them.

func (*Mailer) ParseTemplate added in v1.58.0

func (m *Mailer) ParseTemplate(filename string, params interface{}) (html string, err error)

ParseTemplate produces email template.

func (*Mailer) PasswordReset

func (m *Mailer) PasswordReset(recipient, url string)

PasswordReset sends a reset email with an embedded token.

func (*Mailer) Send added in v1.58.0

func (m *Mailer) Send(em ds.EmailMessage) (ok bool, err error)

Send prepares and sends email.

func (*Mailer) ShareSpaceExistingUser added in v1.54.0

func (m *Mailer) ShareSpaceExistingUser(recipient, inviter, url, folder, intro string)

ShareSpaceExistingUser provides an existing user with a link to a newly shared space.

func (*Mailer) ShareSpaceNewUser added in v1.54.0

func (m *Mailer) ShareSpaceNewUser(recipient, inviter, url, space, invitationMessage string)

ShareSpaceNewUser invites new user providing Credentials, explaining the product and stating who is inviting them.

Jump to

Keyboard shortcuts

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