package
Version:
v0.0.0-...-60192f8
Opens a new window with list of versions in this module.
Published: Apr 26, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package email provides functions to send emails.
Sender is the default email sender. It's made public so it can be
overridden during tests.
CanSendEmail returns true when we can send emails.
InitSender initializes the default email sender base on the
configuration.
SendEmail sends a message to the given email address using
a template (go template from assets/templates/emails).
SMTPSender implements EmailSender for SMTP.
SendEmail sends an email using SMTP.
type StdOutSender struct{}
StdOutSender implements EmailSender for stdout.
SendEmail "sends" an email to stdout.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.