email

package
v0.0.0-...-4047caf Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TextHTML  = "text/html"
	TextPlain = "text/plain"
)

Variables

This section is empty.

Functions

func SendWithoutSSL

func SendWithoutSSL(smtpAddress string, port int, username, password string, message *Message) error

SendWithoutSSL send mail

Types

type Contact

type Contact struct {
	Name    string
	Address string
}

Contact contact

type File

type File struct {
	Path      string
	AliasName string
}

File file

type Message

type Message struct {
	From        Contact
	To          []Contact
	Cc          []Contact
	Bcc         []Contact
	Subject     string
	Body        string
	ContentType string
	Attach      []File
}

Message msg

Jump to

Keyboard shortcuts

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