smtp

package
v0.0.0-...-d2b7790 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func SendWithSSL

func SendWithSSL(smtpAddress string, username, password string, message *Message) error

SendWithoutSSL send mail

func SendWithoutSSL

func SendWithoutSSL(smtpAddress string, 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