smtp

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package smtp sends MIME-formatted emails via SMTP.

Credentials are provided by most electronic mail box hosting services. The common ones:

Index

Constants

View Source
const (
	MailerName          = "smtp"
	EnvironmentServer   = "SMTP_HOST"
	EnvironmentPort     = "SMTP_PORT"
	EnvironmentUsername = "SMTP_USERNAME"
	EnvironmentPassword = "SMTP_PASSWORD"
	EnvironmentTestTo   = "SMTP_TEST_TO"
)

Variables

This section is empty.

Functions

func LoginAuth

func LoginAuth(username, password string) (smtp.Auth, error)

func New

func New(config Configuration) (_ mdsend.Mailer, err error)

Types

type Configuration

type Configuration struct {
	Host           string
	Port           string
	Queue          queue.Queue
	Authentication smtp.Auth
}

Jump to

Keyboard shortcuts

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