gomail

package
v0.0.0-...-1649e63 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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 is a thin wrapper around Gomail library which will add context support to the existing signature call.

func NewClient

func NewClient(from, password, host string, port int) *Client

NewClient constructs new Gomail client with provided credentials.

func (*Client) Send

func (c *Client) Send(ctx context.Context, in mail.Mail) error

Send method initiates a call to the SMTP server using Gomail's method. Blocks until call is finished, or error is raised, or context is done.

Jump to

Keyboard shortcuts

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