utils

package
v0.0.0-...-aaf8e14 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(host string, secret string) string

func Send

func Send(email Email, config SmtpConfig) error

Types

type Email

type Email struct {
	To   []string
	Body string
}

type RawEmail

type RawEmail struct {
	From    string `json:"email"`
	Name    string `json:"name"`
	Subject string `json:"subject"`
	Phone   string `json:"phone"`
	Message string `json:"message"`
}

type SmtpConfig

type SmtpConfig struct {
	Host     string
	Port     string
	From     string
	Username string
	Password string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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