smtp_client

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 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 SendParams

type SendParams struct {
	To      []string
	From    string
	Subject string
	Text    string
	Html    string
}

type Smtp

type Smtp interface {
	Send(ctx context.Context, params *SendParams) error
}

func NewSmtp

func NewSmtp(authentication bool, tlsConnection bool) (Smtp, error)

type SmtpImpl

type SmtpImpl struct {
	// contains filtered or unexported fields
}

func (*SmtpImpl) Send

func (c *SmtpImpl) Send(ctx context.Context, params *SendParams) error

Jump to

Keyboard shortcuts

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