mail

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	Subject string
	Html    string
}

type From

type From struct {
	Address string
	Name    string
}

type Mail

type Mail interface {
	// Content set the content of Mail.
	Content(content Content) Mail
	// From set the sender of Mail.
	From(address From) Mail
	// To set the recipients of Mail.
	To(addresses []string) Mail
	// Cc adds a "carbon copy" address to the Mail.
	Cc(addresses []string) Mail
	// Bcc adds a "blind carbon copy" address to the Mail.
	Bcc(addresses []string) Mail
	// Attach attaches files to the Mail.
	Attach(files []string) Mail
	// Send the Mail
	Send() error
	// Queue a given Mail
	Queue(queue ...Queue) error
}

type Queue

type Queue struct {
	Connection string
	Queue      string
}

Jump to

Keyboard shortcuts

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