mail

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mail defines the interfaces for sending email messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailSender

type MailSender interface {
	SendMail(from, to, subject string, body *bytes.Buffer) error
}

MailSender is an abstraction of a mail client.

func New

func New(configPath string) (MailSender, error)

New returns an initialized mail client.

Jump to

Keyboard shortcuts

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