mail

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 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 Address added in v1.15.0

type Address struct {
	Address string
	Name    string
}

type Content

type Content struct {
	Html string
}

type Envelope added in v1.15.0

type Envelope struct {
	Bcc     []string
	Cc      []string
	From    Address
	Subject string
	To      []string
}

type Mail

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

type Mailable added in v1.15.0

type Mailable interface {
	// Attachments set the attachments of Mailable.
	Attachments() []string
	// Content set the content of Mailable.
	Content() *Content
	// Envelope set the envelope of Mailable.
	Envelope() *Envelope
	// Queue set the queue of Mailable.
	Queue() *Queue
}

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