send_email

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSmtpEmailImplementation

func NewSmtpEmailImplementation(host, port, username, password string) (email2.EmailI, error)

Types

type Input

type Input struct {
	EmailAddress     string `json:"email_address" validate:"required"`
	Subject          string `json:"subject" validate:"required"`
	HtmlMessage      string `json:"html_message" validate:"required"`
	PlainTextMessage string `json:"plain_text_message" validate:"required"`
}

type Tool

type Tool struct {
	Params           map[string]interface{}
	LogsWriter       io.Writer
	CallbacksHandler callbacks.Handler
	SmtpImpl         email2.EmailI
	FromAddress      string
	DebugOpenAICalls bool
}

func NewTool

func NewTool(params map[string]interface{}, logsWriter io.Writer, callbacksHandler callbacks.Handler,
	debugOpenAICalls bool) (*Tool, error)

func (*Tool) Call

func (t *Tool) Call(ctx context.Context, input string) (string, error)

func (*Tool) Description

func (t *Tool) Description() string

func (*Tool) Name

func (t *Tool) Name() string

func (*Tool) Parameters

func (t *Tool) Parameters() map[string]any

Jump to

Keyboard shortcuts

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