email

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTemplateDir

func ParseTemplateDir(dir string) (*template.Template, error)

Types

type Client

type Client struct {
	DefaultFrom string
	TemplateDir string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg Config) Client

func (*Client) SendVerificationEmail

func (c *Client) SendVerificationEmail(data UserEmailData) error

type Config

type Config struct {
	Host        string
	Port        int
	From        string
	TemplateDir string
}

type UserEmailData

type UserEmailData struct {
	Username         string
	Email            string
	VerificationCode string
}

Jump to

Keyboard shortcuts

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