mail

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: Zlib Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MailContent

func MailContent(mailType MailType, magicLink string) (subject, content string)

MailContent is a struct for mail content.

func Send

func Send(email Mail, mailType MailType) error

Send sends a mail by smtp.

Types

type Mail

type Mail struct {
	To     string
	ToName string
	Cc     []string
	// contains filtered or unexported fields
}

Mail is a struct for mail.

type MailType

type MailType int

MailType is a type for mail type.

const (
	MailLogin  MailType = iota // MailLogin is a mail type for login.
	MailChange                 // MailChange is a mail type for change email.
	MailVerify                 // MailVerify is a mail type for verify email.
)

Jump to

Keyboard shortcuts

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