email

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 8 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 NewClient

func NewClient(username, password string, opts ...Option) *Client

func (*Client) IMAPConnect

func (c *Client) IMAPConnect() (net.Conn, error)

func (*Client) IMAPCredentials

func (c *Client) IMAPCredentials() (string, string)

func (*Client) SendEmail

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

func (*Client) Tools

func (c *Client) Tools() []daneel.Tool

Tools returns email tools for an agent.

type Option

type Option func(*Client)

func WithFrom

func WithFrom(from string) Option

func WithIMAP

func WithIMAP(host string, port int) Option

func WithSMTP

func WithSMTP(host string, port int) Option

func WithTLS

func WithTLS(enabled bool) Option

Jump to

Keyboard shortcuts

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