mail

package
v0.0.0-...-c214036 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(subject, templateName string, data interface{}) error

Send constructs and sends an email using the specified subject, template, and data.

Types

type Defaults

type Defaults struct {
	Email string // Recipient's email address
	Name  string // Recipient's name
}

Defaults struct holds common fields for all email types.

type VerifyDTO

type VerifyDTO struct {
	Defaults
	Code string
}

VerifyDTO is a data structure for verification emails.

func (VerifyDTO) Send

func (data VerifyDTO) Send() error

Send dispatches a verification email using predefined template and subject.

Jump to

Keyboard shortcuts

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