sendmail

package module
v0.0.0-...-8e75702 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package sendmail use net/smtp to send email

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNoMailFrom address of from user is empty
	ErrNoMailFrom = errors.New("from field is empty")
	//ErrNoMailTo address of to is empty
	ErrNoMailTo = errors.New("to field is empty")
)

Functions

func Sendmail

func Sendmail(addr, from, password string, to, cc, bcc []string, sub string, msg []byte) error

Sendmail use smtp.SendMail

func SkipVerifyTLS

func SkipVerifyTLS(addr, from, password string, to, cc, bcc []string, sub string, msg []byte) error

SkipVerifyTLS sendmail skip TLS verify, it only should be used on localhost

Types

This section is empty.

Jump to

Keyboard shortcuts

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