smtp

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailClient

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

MailClient - адаптер для отправки электронных писем через SMTP.

func NewMailClient

func NewMailClient(host, port, username, password string) *MailClient

NewMailClient - создаёт объект MailClient.

func (*MailClient) SendMail

func (c *MailClient) SendMail(ctx context.Context, from string, to []string, header textproto.MIMEHeader, body string) error

SendMail - отправляет электронное письмо указанному адресату.

Jump to

Keyboard shortcuts

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