goemail

package module
v0.0.0-...-a888ea3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ContentHTML = "html"

Variables

This section is empty.

Functions

func Init

func Init(con ConnectionDetails)

func New

func New(mail MailDetails) (*email, error)

Types

type ConnectionDetails

type ConnectionDetails struct {
	Host         string
	Port         int
	SmtpUser     string
	SmtpPassword string
}

type MailDetails

type MailDetails struct {
	To      []string
	Cc      []string
	Bcc     []string
	Subject string

	Sender      string
	SenderName  string
	ReturnEmail string
	Tags        string

	Template      Template
	ImagesToEmbed []string

	Content     string
	ContentType string
}

type Template

type Template struct {
	Multilevel    bool
	TemplatePaths []string
	Data          interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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