Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProviderSMTP = "smtp" ProviderResend = "resend" ProviderSES = "ses" ProviderLog = "log" )
Variables ¶
This section is empty.
Functions ¶
func FormatAddress ¶
FormatAddress parses "Name <email>" or bare email for SMTP MAIL FROM / headers.
func ValidateProvider ¶
ValidateProvider reports whether name is a known provider id.
Types ¶
type MemorySender ¶
type MemorySender struct {
Sent []Message
// contains filtered or unexported fields
}
MemorySender records sent messages for tests.
type Message ¶
Message is an outbound email.
func InviteExistingUser ¶
InviteExistingUser builds the notification for an existing platform user.
func InviteNewUser ¶
InviteNewUser builds the invite email for an unknown address.
func PasswordReset ¶
PasswordReset builds the password recovery email.
Click to show internal directories.
Click to hide internal directories.