email

package module
v0.0.0-...-210a03e Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 7 Imported by: 0

README

mail

golang email solution. simple and quick.

API

  • ValidateFormat(email string)
  • ValidateHost(email string)

TSAK

  • check email valid
  • send email
  • recive email

Documentation

Index

Constants

This section is empty.

Variables

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

init

Functions

func DialTimeout

func DialTimeout(addr string, timeout time.Duration) (*smtp.Client, error)

DialTimeout returns a new Client connected to an SMTP server at addr. The addr must include a port, as in "mail.example.com:smtp".

func ValidateFormat

func ValidateFormat(email string) error

ValidateFormat check format

func ValidateHost

func ValidateHost(email string) error

ValidateHost check host

Types

This section is empty.

Jump to

Keyboard shortcuts

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