mailer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	Domain      string
	Templates   string
	Host        string
	Port        int
	Username    string
	Password    string
	Encryption  string
	FromAddress string
	FromName    string
	Jobs        chan Message
	Results     chan Result
	API         string
	APIKey      string
	APIUrl      string
}

func (*Mail) ChooseAPI

func (m *Mail) ChooseAPI(msg Message) error

func (*Mail) ListenForMail

func (m *Mail) ListenForMail()

func (*Mail) Send

func (m *Mail) Send(msg Message) error

func (*Mail) SendSMTPMessage

func (m *Mail) SendSMTPMessage(msg Message) error

func (*Mail) SendUsingApi

func (m *Mail) SendUsingApi(msg Message, transport string) error

type Message

type Message struct {
	From        string
	FromName    string
	To          string
	Subject     string
	Template    string
	Attachments []string
	Data        interface{}
}

type Result

type Result struct {
	Success bool
	Error   error
}

Jump to

Keyboard shortcuts

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