email

package
v0.0.0-...-aef9128 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateOTP

func GenerateOTP(maxDigits uint32) string

func GenericSendMail

func GenericSendMail(subject string, content string, toEmail string, userName string) error

func SendDeletionMail

func SendDeletionMail(toEmail string, userID uint, userName string) error

func SendForgotPasswordMail

func SendForgotPasswordMail(toEmail string, userID uint, userName string) error

func SendRegistrationMail

func SendRegistrationMail(subject string, content string, toEmail string, userID uint, userName string, newUser bool) error

Types

type EmailAddress

type EmailAddress struct {
	Email string `json:"email"`
	Name  string `json:"name"`
}

type RegistrationEmail

type RegistrationEmail struct {
	Subject  string         `json:"subject"`
	From     EmailAddress   `json:"from"`
	To       []EmailAddress `json:"to"`
	Category string         `json:"category"`
	Text     string         `json:"text"`
}

Jump to

Keyboard shortcuts

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