smtp

package
v0.0.0-...-fae0b3d Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const SMTP = "smtp"

Variables

This section is empty.

Functions

func AgnosticAuth

func AgnosticAuth(identity, username, password, host string) smtp.Auth

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

LoginAuth returns an Auth that implements the LOGIN authentication which is still used by some SMTP server https://datatracker.ietf.org/doc/html/draft-murchison-sasl-login-00

Types

type Params

type Params struct {
	From    string `json:"from"`
	To      string `json:"to"`
	Subject string `json:"subject"`

	BaseURL        string `json:"base_url"`
	Host           string `json:"host"`
	Port           string `json:"port"`
	Username       string `json:"username"`
	Password       string `json:"password"`
	EnableStartTLS bool   `json:"enable_starttls"`
}

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(params []byte) (*Publisher, error)

func (Publisher) Publish

func (p Publisher) Publish(b []byte)

Jump to

Keyboard shortcuts

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