mails

package
v0.0.0-...-10fa78b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mails implements various helper methods for sending common emails like forgotten password, verification, etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendRecordAuthAlert

func SendRecordAuthAlert(app core.App, authRecord *core.Record) error

SendRecordAuthAlert sends a new device login alert to the specified auth record.

func SendRecordChangeEmail

func SendRecordChangeEmail(app core.App, authRecord *core.Record, newEmail string) error

SendRecordChangeEmail sends a change email confirmation email to the specified auth record.

func SendRecordOTP

func SendRecordOTP(app core.App, authRecord *core.Record, otpId string, pass string) error

SendRecordOTP sends OTP email to the specified auth record.

This method will also update the "sentTo" field of the related OTP record to the mail sent To address (if the OTP exists and not already assigned).

func SendRecordPasswordReset

func SendRecordPasswordReset(app core.App, authRecord *core.Record) error

SendRecordPasswordReset sends a password reset request email to the specified auth record.

func SendRecordVerification

func SendRecordVerification(app core.App, authRecord *core.Record) error

SendRecordVerification sends a verification request email to the specified auth record.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL