Documentation ¶
Index ¶
- type Mailer
- func (m *Mailer) DocumentApprover(recipient, inviterName, inviterEmail, url, document string)
- func (m *Mailer) Initialize()
- func (m *Mailer) InviteExistingUser(recipient, inviterName, inviterEmail, url string)
- func (m *Mailer) InviteNewUser(recipient, inviterName, inviterEmail, url, username, password string)
- func (m *Mailer) ParseTemplate(filename string, params interface{}) (html string, err error)
- func (m *Mailer) PasswordReset(recipient, url string)
- func (m *Mailer) Send(em ds.EmailMessage) (ok bool, err error)
- func (m *Mailer) ShareSpaceExistingUser(recipient, inviterName, inviterEmail, url, folder, intro string)
- func (m *Mailer) ShareSpaceNewUser(recipient, inviterName, inviterEmail, url, space, invitationMessage string)
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
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 ¶
InviteExistingUser invites a known user to an organization.
func (*Mailer) InviteNewUser ¶
func (m *Mailer) InviteNewUser(recipient, inviterName, inviterEmail, 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
ParseTemplate produces email template.
func (*Mailer) PasswordReset ¶
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, inviterName, inviterEmail, 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, inviterName, inviterEmail, url, space, invitationMessage string)
ShareSpaceNewUser invites new user providing Credentials, explaining the product and stating who is inviting them.