gosmtp

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 6 Imported by: 0

README

gosmtp

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

func Open

func Open()

func Send

func Send(mail *Mail) error

Types

type Config

type Config struct {
	URL string `env:"SMTP_URL, default=smtp://user:pass@localhost:1025"`
}

type Mail

type Mail struct {
	From    string
	To      string
	Subject string
	Body    string
}

Jump to

Keyboard shortcuts

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