mailer

package
v0.0.0-...-1c7d376 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 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 string, file string, data any) error

Send composes and sends an email with the provided subject, file, and data.

Types

type Defaults

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

Defaults struct holds the common fields required for sending emails.

type VerifyDTO

type VerifyDTO struct {
	Defaults
	Code string
}

VerifyDTO struct holds the data required for sending a verification email.

func (VerifyDTO) Send

func (data VerifyDTO) Send() error

Send sends the verification email.

Jump to

Keyboard shortcuts

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