infra

package
v0.0.0-...-559c230 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const LineBreak = "\n"

Line Break

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPClient

type SMTPClient struct {
	*smtp.Client
	Server string
}

SMTPClient is a SMTP client.

func (*SMTPClient) Connect

func (c *SMTPClient) Connect() error

Connect connects to the SMTP server.

func (*SMTPClient) Disconnect

func (c *SMTPClient) Disconnect() error

Disconnect disconnects from the SMTP server.

func (*SMTPClient) Send

func (c *SMTPClient) Send(m *message.Mail) error

Send sends a mail.

Jump to

Keyboard shortcuts

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