mail

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

func Open

func Open(smtpURL string)

func Send

func Send(e Email) error

Types

type Action

type Action struct {
	Color     string
	Link      string
	Text      string
	TextColor string
}

type Body

type Body struct {
	Name    string
	Intros  []string
	Actions []Action
	Outros  []string
}

func (*Body) GetHTML

func (e *Body) GetHTML() string

type Email

type Email struct {
	From    string
	To      string
	Subject string
	Body    Body
}

Jump to

Keyboard shortcuts

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