email

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client ...

func NewClient

func NewClient(username, password, hostname string, portNumber int) *Client

NewClient ...

func (Client) Send

func (c Client) Send(subject, body string, from Email, to []Email) (recipients []string, err error)

Send sends an e-mail and returns the actual list of potential recipients

type Email

type Email struct {
	// The actual e-mail address, eg. john@doe.com
	Address string

	// The name to display, eg. John Doe
	Name string
}

Email ...

func NewEmail

func NewEmail(address string, displayName ...string) *Email

NewEmail ...

func (Email) Display

func (e Email) Display() string

Display returns the display name

func (Email) IsValid

func (e Email) IsValid() bool

IsValid ...

func (Email) String

func (e Email) String() string

String ...

Jump to

Keyboard shortcuts

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