Documentation ¶
Index ¶
- Constants
- type Mailer
- func (m *Mailer) AddEmailTemplate(templateName string, subject string, isHTML bool, body string)
- func (m *Mailer) SendAccountNameReminderEmail(to string, accountName string) error
- func (m *Mailer) SendAccountRemovedEmail(to string, accountName string) error
- func (m *Mailer) SendAccountResetPasswordEmail(to string, accountName string, token string, address string) error
- func (m *Mailer) SendAccountVerificationEmail(to string, accountName string, token string, url string) error
- func (m *Mailer) SendAccountVerifiedEmail(to string, accountName string) error
- func (m *Mailer) SendMail(to string, subject string, isHTML bool, body string) error
- func (m *Mailer) SendOrganizationCreatedEmail(to string, organization string) error
- func (m *Mailer) SendOrganizationRemovedEmail(to string, organization string) error
- func (m *Mailer) SendTeamCreatedEmail(to string, team string) error
- func (m *Mailer) SendTeamRemovedEmail(to string, team string) error
- func (m *Mailer) SendTemplateEmail(to string, templateEmailName string, variableMap map[string]string) error
- func (m *Mailer) SendUserAddedInOrganizationEmail(to string, organization string, user string) error
- func (m *Mailer) SendUserAddedInTeamEmail(to string, team string, user string) error
- func (m *Mailer) SendUserRemovedFromOrganizationEmail(to string, organization string, user string) error
- func (m *Mailer) SendUserRemovedFromTeamEmail(to string, team string, user string) error
Constants ¶
View Source
const (
// DefaultSender default email sender
DefaultSender = "none@example.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type Mailer struct {
// contains filtered or unexported fields
}
Mailer main mailer struct
func (*Mailer) AddEmailTemplate ¶
AddEmailTemplate add template in the map
func (*Mailer) SendAccountNameReminderEmail ¶
SendAccountNameReminderEmail send a AccountNameReminder email template
func (*Mailer) SendAccountRemovedEmail ¶
SendAccountRemovedEmail send mail
func (*Mailer) SendAccountResetPasswordEmail ¶
func (m *Mailer) SendAccountResetPasswordEmail(to string, accountName string, token string, address string) error
SendAccountResetPasswordEmail send a AccountResetPassword email template
func (*Mailer) SendAccountVerificationEmail ¶
func (m *Mailer) SendAccountVerificationEmail(to string, accountName string, token string, url string) error
SendAccountVerificationEmail send mail
func (*Mailer) SendAccountVerifiedEmail ¶ added in v0.10.0
SendAccountVerifiedEmail send mail
func (*Mailer) SendOrganizationCreatedEmail ¶
SendOrganizationCreatedEmail send mail
func (*Mailer) SendOrganizationRemovedEmail ¶
SendOrganizationRemovedEmail send mail
func (*Mailer) SendTeamCreatedEmail ¶
SendTeamCreatedEmail send mail
func (*Mailer) SendTeamRemovedEmail ¶
SendTeamRemovedEmail send mail
func (*Mailer) SendTemplateEmail ¶
func (m *Mailer) SendTemplateEmail(to string, templateEmailName string, variableMap map[string]string) error
SendTemplateEmail send a tempalte email
func (*Mailer) SendUserAddedInOrganizationEmail ¶
func (m *Mailer) SendUserAddedInOrganizationEmail(to string, organization string, user string) error
SendUserAddedInOrganizationEmail send mail
func (*Mailer) SendUserAddedInTeamEmail ¶
SendUserAddedInTeamEmail send mail
Click to show internal directories.
Click to hide internal directories.