Documentation
¶
Index ¶
- type Mailer
- func (m *Mailer) SendEmailChangeAlert(ctx context.Context, oldEmail, newEmail string) error
- func (m *Mailer) SendEmailChangeOtpEmail(ctx context.Context, newEmail, otp string) error
- func (m *Mailer) SendOtpEmail(ctx context.Context, email, otp string) error
- func (m *Mailer) SendPasswordResetEmail(ctx context.Context, email, callbackURL string) error
- func (m *Mailer) SendPasswordResetOtpEmail(ctx context.Context, email, otp string) error
- type MailerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type Mailer struct {
// contains filtered or unexported fields
}
Mailer handles sending emails using configuration from a provider.
func (*Mailer) SendEmailChangeAlert ¶ added in v0.11.0
func (*Mailer) SendEmailChangeOtpEmail ¶ added in v0.11.0
func (*Mailer) SendOtpEmail ¶ added in v0.10.0
func (*Mailer) SendPasswordResetEmail ¶
SendPasswordResetEmail sends a password reset message to the specified email address with the password reset callback URL that includes the token
type MailerInterface ¶ added in v0.5.0
type MailerInterface interface {
SendPasswordResetEmail(ctx context.Context, email, callbackURL string) error
SendOtpEmail(ctx context.Context, email, otp string) error
SendPasswordResetOtpEmail(ctx context.Context, email, otp string) error
SendEmailChangeOtpEmail(ctx context.Context, newEmail, otp string) error
SendEmailChangeAlert(ctx context.Context, oldEmail, newEmail string) error
}
MailerInterface defines the methods for sending emails.
Click to show internal directories.
Click to hide internal directories.