etc

package
v0.0.0-...-39f8b0b Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateOTP

func GenerateOTP(length int) string

func GenerateOtpEmailBody

func GenerateOtpEmailBody(otp string) (string, error)

generateEmailBody generates the HTML email body for a student

func SendEmail

func SendEmail(smtpHost, smtpPort, from, password, to, body string) error

sendEmail sends an email using SMTP

Types

type Otp

type Otp struct {
	Code string
}

Jump to

Keyboard shortcuts

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