email

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 2 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 manages client side of mail server

func NewClient

func NewClient(server string, port int) *Client

NewClient creates a new client

func (*Client) SendMessage

func (c *Client) SendMessage(from string, to []string, subject, body string) error

SendMessage implements the email SendMessage function

type Email

type Email interface {
	// SendMessage sends message via email
	SendMessage(from string, to []string, subject, body string) error
}

Email is the interface of email

Jump to

Keyboard shortcuts

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