smtp

package
v0.0.0-...-84b72f1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

README

smtp

SMTP client for email sending.

Dependencies

Setup

You need to setup these env variables

SMTP_HOST=mailhog
SMTP_PORT=1025
SMTP_USERNAME=
SMTP_PASSWORD=

Make sure SMTP_USERNAME and SMTP_PASSWORD are empty for development to avoid TLS.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *Config) interfaces.Emailer

Types

type Config

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

Jump to

Keyboard shortcuts

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