email

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

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 7 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
	// 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
}

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