mails

package
v0.23.11 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 9 Imported by: 32

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendRecordAuthAlert added in v0.23.0

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

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

func SendRecordChangeEmail added in v0.8.0

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 added in v0.23.0

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 added in v0.8.0

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

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

func SendRecordVerification added in v0.8.0

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