mail

package
v0.0.0-...-943c47d Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(c Config, template embed.FS, patterns ...string) (*Client, error)

New accepts Config and an optional template and returns a configered Client

If a template is not required, simply pass an empty string

func (*Client) SendMailFromTemplate

func (c *Client) SendMailFromTemplate(subject string, data interface{}) error

type Config

type Config struct {
	SMTPHost        string
	SMTPPort        string
	SMTPUsername    string
	SMTPPassword    string
	SMTPFromAddress string
	SMTPToAddresses []string
}

Jump to

Keyboard shortcuts

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