lib

package
v0.0.0-...-d69bd99 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FALCONEMAIL   = "support@warrensbox.com"
	FALCONURL     = "https://warrensbox.github.io/falcon-form"
	FALCONAME     = "Falcon Form"
	FALCONCOPY    = "Ⓒ 2018 Warrensbox - Crafted with ❤ in Iowa"
	FALCONSUBJECT = "You've got a message from Falcon Form! "
	SEND_OK       = "{ \"message\": \"Message sent successfully\"}"
	SEND_NOT_OK   = "{ \"message\": \"Unble to send message\"}"
	IMGHEADER     = "https://s3.us-east-2.amazonaws.com/kepler-images/warrensbox/falcon_form/falcon-form_350.png"
)

Variables

View Source
var (
	ErrBadFormat        = errors.New("invalid format")
	ErrUnresolvableHost = errors.New("unresolvable host")
)

Functions

func ErrorExit

func ErrorExit(msg string, e error)

func SendEmail

func SendEmail(owner_email string, contact_email string, contact_phone string, contact_name string, msg_content string) string

func ValidateFormat

func ValidateFormat(email string) error

func ValidateHost

func ValidateHost(email string) error

Types

type Person

type Person struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
}

type SmtpError

type SmtpError struct {
	Err error
}

func NewSmtpError

func NewSmtpError(err error) SmtpError

func (SmtpError) Code

func (e SmtpError) Code() string

func (SmtpError) Error

func (e SmtpError) Error() string

Jump to

Keyboard shortcuts

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