chesgomailing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TYPE_HTML = "MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"
View Source
const TYPE_IMG_GIF = "MIME-version: 1.0;\nContent-Type: image/gif; charset=\"UTF-8\";\n\n"
View Source
const TYPE_IMG_JPGE = "MIME-version: 1.0;\nContent-Type: image/png; charset=\"UTF-8\";\n\n"
View Source
const TYPE_IMG_PNG = "MIME-version: 1.0;\nContent-Type: image/jpeg; charset=\"UTF-8\";\n\n"
View Source
const TYPE_TEXT_PLAIN = "MIME-version: 1.0;\nContent-Type: text/plain; charset=\"UTF-8\";\n\n"

Variables

This section is empty.

Functions

func Send

func Send(config *Config, data DataToSend) error

Types

type Config

type Config struct {
	From     string
	Password string
	Host     string
	Port     string
}

type DataToSend

type DataToSend struct {
	Format  string
	Subject string
	Body    string
	To      []string
}

Jump to

Keyboard shortcuts

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