maillib

package
v0.0.0-...-7a41c64 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(cfg Config)

func NewEmail

func NewEmail() *email.Email

func Send

func Send(e *email.Email) error

Types

type Config

type Config struct {
	Host     string
	Port     int
	Username string
	Password string
	From     string
}

type MailClient

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

func NewClient

func NewClient(cfg Config) *MailClient

func (*MailClient) Send

func (c *MailClient) Send(e *email.Email) error

Jump to

Keyboard shortcuts

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