Documentation
¶
Index ¶
Constants ¶
View Source
const ( PasswordResetEmailSubject = "Deepfence - Reset Password" UserInviteEmailSubject = "Deepfence - Invitation to join %s" )
Variables ¶
Functions ¶
func RenderEmailTemplate ¶
func RenderEmailTemplate(emailTemplateType EmailTemplateType, data interface{}) (string, error)
Types ¶
type EmailSender ¶
type EmailSender interface {
Send(recipients []string, subject string, text string, html string, attachments map[string][]byte) error
}
func NewEmailSendByConfiguration ¶
func NewEmailSendByConfiguration(ctx context.Context, emailConfig model.EmailConfigurationAdd) (EmailSender, error)
func NewEmailSender ¶
func NewEmailSender(ctx context.Context) (EmailSender, error)
type EmailTemplateType ¶
type EmailTemplateType string
const ( PasswordResetTemplate EmailTemplateType = "reset-password.html" UserInviteTemplate EmailTemplateType = "invite-user.html" )
type PasswordReset ¶
Click to show internal directories.
Click to hide internal directories.