Documentation
¶
Index ¶
- Variables
- func Configured() bool
- func SendPasswordResetEmail(u core.User, token string) error
- func SendResourceShareEmail(u core.User, r core.Resource) error
- func SendTokenLoginEmail(u core.User, token string) error
- func SendWelcomeEmail(u core.User) error
- func SetDefaultMailer(mailer Mailer)
- type Config
- type Email
- type FromConfig
- type Mailer
- type SMTPConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmailNotConfigured = errors.New("email not configured")
Functions ¶
func Configured ¶
func Configured() bool
func SendWelcomeEmail ¶
func SetDefaultMailer ¶
func SetDefaultMailer(mailer Mailer)
Types ¶
type Config ¶
type Config struct {
SMTP SMTPConfig `koanf:"smtp"`
From FromConfig `koanf:"from"`
Instance string `koanf:"instance"`
}
type FromConfig ¶
type Mailer ¶
type Mailer struct {
// contains filtered or unexported fields
}
func (Mailer) SendTestEmail ¶
Click to show internal directories.
Click to hide internal directories.