smtprelay

package
v1.37.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 9 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
}

func New

func New(ctx context.Context, settings integration.SMTPRelay) *Client

func (*Client) Request

func (c *Client) Request(r *Request) error

func (*Client) Send

func (c *Client) Send(message *email.Message) error

type Request

type Request struct {
	Username string        `json:"username"`
	Password string        `json:"password"`
	Host     string        `json:"host"`
	Port     string        `json:"port"`
	From     email.Email   `json:"mailFrom"`
	To       []email.Email `json:"mailTo"`
	Msg      string        `json:"msg"`
}

Jump to

Keyboard shortcuts

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